LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fortran programming in linux (https://www.linuxquestions.org/questions/linux-newbie-8/fortran-programming-in-linux-744683/)

saray 08-03-2009 02:24 AM

fortran programming in linux
 
Hi,

I have open suse 11.0 installed and I am abit new to working with linux. But my main job is to statrt programming with fortran in linux and I have no idea about it.

I'd be grateful to know how to start.

Regards,

Johnnie J 08-03-2009 02:34 AM

More specifically, what do need to do? Do you need a compiler? Google - linux fortran - many links.

vasmakk 08-03-2009 02:41 AM

Quote:

Originally Posted by saray (Post 3629207)
Hi,

I have open suse 11.0 installed and I am abit new to working with linux. But my main job is to statrt programming with fortran in linux and I have no idea about it.

I'd be grateful to know how to start.

Regards,

Hi saray!

gfortran is the GNU Fortran compiler you are looking for ...
In Debian based systems, you can Installed it by using
#apt-get install gfortran
I'm not sure about openSUSE but I think you can use APT with this distro also, and this command may work.
In case the above command doesn't work, use the YaST installation environment. The one used by openSUSE to install software... See more in YaST documentation.

After you have Installed gfortran you can write a Fortran program using your favourite Text Editor, and compile it with gfortran

Regards!
Vas

saray 08-03-2009 02:58 AM

Thanks for the very useful reply on gfortran. I have it installed and I have compiled some codes with it.

Another question related to the first one is that, the commands of fortran programming are just the same as what we have in windows?

allez 08-03-2009 04:24 AM

Quote:

Originally Posted by saray (Post 3629236)
Another question related to the first one is that, the commands of fortran programming are just the same as what we have in windows?

Yes. Fortran's syntax depends only on specific Fortran standard, not operating system.


All times are GMT -5. The time now is 05:01 PM.