Recent content by rose2718
-
R
Fortran How can I read and write 3D arrays in Fortran?
Okay, great! I left out the skipping a line part, as you mentioned it isn't needed. Thanks again!- rose2718
- Post #7
- Forum: Programming and Computer Science
-
R
Fortran How can I read and write 3D arrays in Fortran?
Thanks minger. The writing works fine without do loops, but I get the "Traceback: (Innermost first)" error again when trying to read back in. Any idea why this error would show up? Thanks!- rose2718
- Post #5
- Forum: Programming and Computer Science
-
R
Fortran How can I read and write 3D arrays in Fortran?
Thanks mathmate, your info was very helpful! I got a runtime error at the line: read(17,'(2I5,2E12.4)')x,y,u(x,y,1),u(x,y,2) error: Traceback: (Innermost first) I ended up using: do x=1,n do y=1,m read(19,'(2E12.4)')u(x,y,1),u(x,y,2) enddo enddo which leaves out your...- rose2718
- Post #3
- Forum: Programming and Computer Science
-
R
Fortran How can I read and write 3D arrays in Fortran?
Hi! I have a 3D array u(n,m,2), where n=2000, m=200 are the xy-coordinates, and u(n,m,1) and u(n,m,2) store values of variables a and b computed at the coordinates. (not very familiar with fortran I/O for arrays, when new lines are started, etc). I'd like to output this array into a...- rose2718
- Thread
- 3d Arrays Fortran
- Replies: 7
- Forum: Programming and Computer Science