×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Launch fortran code on linux to read data

Launch fortran code on linux to read data

Launch fortran code on linux to read data

(OP)
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:
https://earth-info.nga.mil/GandG/wgs84/gravitymod/...
And the output example is fiven there:
https://earth-info.nga.mil/GandG/wgs84/gravitymod/...

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

RE: Launch fortran code on linux to read data

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

RE: Launch fortran code on linux to read data

I_rvln,

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

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

CODE

mksh read_3files_min2.5.txt 

When I run it, files turn up missing.

RE: Launch fortran code on linux to read data

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.

RE: Launch fortran code on linux to read data

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

RE: Launch fortran code on linux to read data

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close