Recent content by VoidSerpent
-
V
Fortran Interpolating & Integrating Data from File to 2D Array
So i have been working on my code, and i realized that the program is not reading an entire line, just the first letter of each line. I created a bunch of dummy files to test how it was reading. i also got this code PROGRAM readfile IMPLICIT NONE REAL, DIMENSION(:), ALLOCATABLE...- VoidSerpent
- Post #11
- Forum: Programming and Computer Science
-
V
Fortran Interpolating & Integrating Data from File to 2D Array
Well i took that from a PDF on Intro to FORTRAN. This is the section; and so i was trying to use that to obtain the number of columns that i will need to properly read in the file to a matrix array. Here is my some what working code, it compiles but now i am running into these run time errors...- VoidSerpent
- Post #10
- Forum: Programming and Computer Science
-
V
Fortran Interpolating & Integrating Data from File to 2D Array
ok, ill change it back to a function. I had people tell me their codes never use "functions" and to change it to a subroutine so i did. but i got my code complied finally. i need to work on reading the file in and counting the items in the string. Is there a way to only read one line from the...- VoidSerpent
- Post #8
- Forum: Programming and Computer Science
-
V
Fortran Interpolating & Integrating Data from File to 2D Array
Thanks for the assist on reading in the data, i believe i have a code that will do it properly now but i am still getting compilation errors. all of them refer to my subroutine they are real subroutine linear_interpolation(x, y, n, x0)...- VoidSerpent
- Post #6
- Forum: Programming and Computer Science
-
V
Fortran Interpolating & Integrating Data from File to 2D Array
@rcgldr, i researched inquiry and length/size code tid bits and none exist to determine the file until it is read. I found some things that suggest 'rewind' as a possible tool to use but nothing on applying it toward columns, closest i found was for the number of rows with DO READ(13,*, iostat =...- VoidSerpent
- Post #4
- Forum: Programming and Computer Science
-
V
Fortran Interpolating & Integrating Data from File to 2D Array
I have this code that i have been working on that will interpolate and integrate some data. I need to read this data from a file with unknown rows and columns to a two dimensional array/matrix so that the data can be broken down further into one dimensional arrays from the parent 2D array's...- VoidSerpent
- Thread
- 2d Array Data File
- Replies: 10
- Forum: Programming and Computer Science