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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launch fortran code on linux to read data

Status
Not open for further replies.

I_rvln

Programmer
Oct 12, 2020
1
FR
Hello everyone,
I would like to read data using a fortran code, and launch it uniquely by using Linux shell command.

the code is given in the link below:
And the output example is fiven there:

When i copy paste the code of the first link, changing only the localisation of the files to read, I have a lot of errors and no result. Would you know how to do it ? I don't know nothing about Fortran, and I can't access the true software.
Thank you by advance
 
Are you building on windows or unix? Those are kornshell (unix, linux, maybe even macos) scripts that create fortran source code and compile them using a fortran compiler called f90. The code starts after the line

cat > scr$$.f <<ENDfile

and ends before the line

ENDfile

 
I_rvln,

Are you running GNU/Linux? I am taking a quick look at my Fedorea[&nbsp;]29 system here, and I cannot find Fortran[&nbsp;]90 (f90) to install. You can always try f77. My Ubuntu box will install neither.

You can install a Korn shell clone, [tt]mksh[/tt]. Change f90 to f77 in your code, and go...

Code:
mksh read_3files_min2.5.txt

When I run it, files turn up missing.
 
Problem is the OP hasn't replied yet and we don't even know whether he/she is using Windows, Unix, Linux, MacOS, VMS or something else. If we are told which OS then we can suggest a compiler.
 
Hello everyone,
I have the same problem of the OP. I am building on windows, in an eclipse project.
Any help would be much appreciated.
Thanks in advance
 
Start a new thread otherwise if and when this op replies and someone answers your question, nobody will know which reply is to which question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top