Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read a multidimensional array and find its size in fortran programming

Status
Not open for further replies.

srarunraj

Technical User
Mar 5, 2015
1
Dear friends,

I am a beginner to fortran programming. I wrote a code to find the inverse of a given matrix using Gauss elimination method. The code works for a matrix with given size. But in order to generalize the program (also in case if the matrix size is too large like in finite element method), i need to read any given array (from a text file or dat file) and find its size (row x column) rather than inputting those manually. Suggestions and helps are sincerely appreciated.

Thanks in advance
 
If you are using F95 onwards, have a look at ALLOCATE and allocatable arrays.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top