I have written one subroutine that generates a rank 4 array, and two subroutines that need to use this array.
How can I write my input/output statements so that I will store this array efficiently in a file and also recall it quickly? I have been trying to use existing syntax but it is failing at runtime:
The syntax "array_" doesn't seem to work, and the inquire fails to return a positive number. How can I write to and read from tjhe same file?
I searched for the read/write code on some other files in ELK. I came up with this syntax, but it gives me an error when I try to write:
Error(global_index) : local index out of boundary
ip : 1
idxl : 9
global index of process : 0
application called MPI_Abort(MPI_COMM_WORLD, -1) - process 0
Here are the read/write codes:
I just want it to store the array to a file so I can read from it in other subroutines. What is the best way to accomplish this?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.