How Can You Efficiently Store and Update Data in FORTRAN Arrays?

  • Context: Fortran 
  • Thread starter Thread starter amitavorc2
  • Start date Start date
  • Tags Tags
    Arrays Data Fortran
Click For Summary
SUMMARY

This discussion focuses on efficiently storing and updating data in FORTRAN arrays, specifically using two arrays, A(900) and B(900), to manage X and Y values. The user seeks guidance on how to initially store 30 values in each array, perform scientific calculations to modify these values, and subsequently store another 30 modified values starting from the 31st index. The conversation highlights the importance of understanding array indexing and the potential redundancy of using large arrays for limited data storage.

PREREQUISITES
  • Basic understanding of FORTRAN programming language
  • Familiarity with array data structures in programming
  • Knowledge of array indexing and manipulation
  • Experience with scientific calculations in programming
NEXT STEPS
  • Research FORTRAN array manipulation techniques
  • Learn about FORTRAN indexing and how to access array elements
  • Explore examples of FORTRAN algorithms for data storage and retrieval
  • Investigate best practices for memory management in FORTRAN
USEFUL FOR

This discussion is beneficial for novice FORTRAN programmers, data scientists using FORTRAN for scientific computations, and anyone looking to optimize data storage techniques in programming.

amitavorc2
Messages
1
Reaction score
0
Dear Sir,

I am using FORTRAN.
I have little experience and i am facing one problem.

I want to store data (i.e. X and Y values) in an array (A(900),B(900)) in such a way that at first I used only 30 elements of each array for storage 30 initial values of X and Y and then I have some scientific calculations to change the values of X and Y and then again want to store 30 modified values of X and Y in the same array from the 31th array element of both arrays. In this way I want to store my data and finally want to print these arrays.

Could you please help me out how I can write this algorithm I FORTRAN code…..

Please help me.

Please guide me

With best regards
 
Technology news on Phys.org
amitavorc2 said:
Dear Sir,

I am using FORTRAN.
I have little experience and i am facing one problem.

I want to store data (i.e. X and Y values) in an array (A(900),B(900)) in such a way that at first I used only 30 elements of each array for storage 30 initial values of X and Y and then I have some scientific calculations to change the values of X and Y and then again want to store 30 modified values of X and Y in the same array from the 31th array element of both arrays. In this way I want to store my data and finally want to print these arrays.

Could you please help me out how I can write this algorithm I FORTRAN code…..

Please help me.

Please guide me

With best regards
Why do you need arrays with 900 elements if you're planning to use only 60 of them? Also, a web search on "fortran array" should yield plenty of examples of how to use arrays.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
8K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
7
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K