Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Array storage

  1. May 15, 2012 #1
    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 algorithim I FORTRAN code…..

    Please help me.

    Please guide me

    With best regards
  2. jcsd
  3. May 21, 2012 #2


    Staff: Mentor

    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.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Array storage Date
Java Representation of two-dimensional arrays in the memory Dec 27, 2017
Python Array Indexing Nov 8, 2017
C/++/# Allocating a huge boolean array fails Oct 14, 2017
Memory storage of multidimensional arrays in fortran 90 Oct 17, 2010
Array storage Aug 6, 2008