How to solve iteration issues in FORTRAN 90 and allocate values for later use?

  • Context: Fortran 
  • Thread starter Thread starter Milentije
  • Start date Start date
  • Tags Tags
    Fortran Issues
Click For Summary
SUMMARY

The discussion focuses on solving iteration issues in FORTRAN 90, specifically regarding the allocation and reuse of values in an array during iterative processes. The user encounters a problem where the same array, rank2 l(21,1), is generated in each iteration. A proposed solution involves creating a new array, lbig(iter,nmax,1), to store the values for later use. The conversation emphasizes the importance of visual code examples for clarity in addressing coding challenges.

PREREQUISITES
  • Understanding of FORTRAN 90 syntax and structure
  • Familiarity with array allocation and manipulation in FORTRAN
  • Knowledge of iterative processes and loops in programming
  • Ability to interpret and debug code snippets
NEXT STEPS
  • Research dynamic memory allocation in FORTRAN 90
  • Learn about array handling techniques in FORTRAN
  • Explore best practices for iterative algorithms in FORTRAN
  • Examine examples of code visualization tools for debugging
USEFUL FOR

This discussion is beneficial for FORTRAN developers, programmers dealing with numerical methods, and anyone facing challenges with iterative processes and array management in FORTRAN 90.

Milentije
Messages
47
Reaction score
0
I have problems with my code.As a result of calculation I got rank2 l(21,1) array.Due to the THE ITERATIVE PROCESS I will get the same array in every iteration.How to allocate values and use them later.Should I create new array
like
do iter=1,n
lbig(iter,nmax,1)=l(nmax,1)?
 
Technology news on Phys.org
Can you post the section of your code you're talking about? Your description is hard to address without some visuals.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K