Hi all,
I am a complete novice on Fortran. I am running a model that was written in Fortran to solve a partial differential equation (finite difference solution)over multiple time steps. I want to read time dependent boundary conditions into the Fortran program. I have created a large text file ("bc.text")that has three columns and up to about 14,000 rows. The first column contains the time. The second column contains one boundary condition, and the third column contains my second boundary condition. I want to write a subroutine within my program that links to this text file and reads the two boundary conditions, but only for the given time step. For example, if I am on time step 99, I want the file to read in the second and third values on the 99th row. Any suggestions would be very much appreciated!
E.g. File
1 5.6 7.3
2 4.5 6.5
3 6.7 7.6
4 4.5 5.6
.
.
.
I am a complete novice on Fortran. I am running a model that was written in Fortran to solve a partial differential equation (finite difference solution)over multiple time steps. I want to read time dependent boundary conditions into the Fortran program. I have created a large text file ("bc.text")that has three columns and up to about 14,000 rows. The first column contains the time. The second column contains one boundary condition, and the third column contains my second boundary condition. I want to write a subroutine within my program that links to this text file and reads the two boundary conditions, but only for the given time step. For example, if I am on time step 99, I want the file to read in the second and third values on the 99th row. Any suggestions would be very much appreciated!
E.g. File
1 5.6 7.3
2 4.5 6.5
3 6.7 7.6
4 4.5 5.6
.
.
.