Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help: Multiple Fortran subroutine

Status
Not open for further replies.

Noraliza

Technical User
Oct 5, 2012
6
MY
I have a problem where I have a program where I have an initial input file, it will produce an output.
The problem is I have several input file where I currently run each input file independently.
If possible, I want the program to run each input file iteratively one after another in one go no matter how many input file I have.
 
Write a shell script or in windows a batch file which selects all your files and calls your fortran program on each file.
Alternativelly, if you want to do it in Fortran, you can use the system() function/subroutine, redirect its output into a file, read that file and process it - like in the example here:
 
Thank You, you have given me an idea on how to proceed. I will try first and see what happen. I will contact you again if I still have problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top