Since it's a small program and since FORTRAN has a good compatibility with its previous versions it shouldn't give you any trouble (just change the comments indicator from "c" to "!" and you should be fine) I think g95 supports fortran77 but I'm not sure, so if you have any trouble, just rename your file to have the extension. if your file is named hello.f90 then you type: g95 hello.f90Ĥ) Now you should have in your folder another file named a.exe (a.out for linux), double click this and it should run your program. if your file is on your desktop, in a folder named "program", then the command should be: cd "c:\Users\\Desktop\program"ģ) Now just type the command g95 name_of_your_file and press enter.Į.g. I'm going to assume that you are on windows, but for linux is exactly the same steps:ġ) Open command prompt (win7: start->search for cmd)Ģ) In the command prompt type: cd address_of_your_fortran_file and press enter.Į.g. Run the downloaded file and install the g95 compiler. Go here and click the link at the bottom of the page (g95-Mingw_201210).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |