- #1
Rowdy5000
- 5
- 0
Hi All,
Let me preface by saying this is my first post, but I'm very glad to have found and joined what looks like a great community here. Also I have no Fortran experience, so please bear with my greenness:
I'm trying to resurrect and use a code written by another engineer in our organization some years ago. I have the following code for opening and reading an input file, now my question is how the input file should look to feed into this correctly.
print*,'Opening / Reading Input File: ...'
print*
open(10,file='input',status='unknown',form='formatted')
read(10,*)a
read(10,*)b
read(10,*)c,d
read(10,*)e,f,g,h
read(10,*)i
read(10,*)j
read(10,*)ntimes
do i=1,ntimes
read(10,*)time(i)
enddo
close(10)
I'm sorry if this is very basic; I'm very new at this!
Thanks!
Let me preface by saying this is my first post, but I'm very glad to have found and joined what looks like a great community here. Also I have no Fortran experience, so please bear with my greenness:
I'm trying to resurrect and use a code written by another engineer in our organization some years ago. I have the following code for opening and reading an input file, now my question is how the input file should look to feed into this correctly.
print*,'Opening / Reading Input File: ...'
print*
open(10,file='input',status='unknown',form='formatted')
read(10,*)a
read(10,*)b
read(10,*)c,d
read(10,*)e,f,g,h
read(10,*)i
read(10,*)j
read(10,*)ntimes
do i=1,ntimes
read(10,*)time(i)
enddo
close(10)
I'm sorry if this is very basic; I'm very new at this!
Thanks!