Difference between revisions of "Fortran1"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
=Fortran1: The Basics= | =Fortran1: The Basics= | ||
+ | |||
+ | We'll forge our path through the lush garden of '''Fortran90''' using a number of examples. To get your copy of these examples, from the version control repository, login to your favourite linux machine (perhaps dylan), and type: | ||
+ | |||
+ | <pre> | ||
+ | svn co http://source.ggy.bris.ac.uk/subversion/fortran1/trunk --username=guest ./fortran1 | ||
+ | </pre> | ||
==hello, world== | ==hello, world== | ||
+ | |||
+ | Without further ado, and in-keeping with the most venerable of traditions, let's meet our first example--"hello, world": | ||
+ | |||
+ | <pre> | ||
+ | cd fortran1/examples/example1 | ||
+ | </pre> | ||
+ | |||
+ | and type: | ||
+ | |||
+ | <pre> | ||
+ | make | ||
+ | </pre> | ||
+ | |||
+ | Now type: | ||
+ | |||
+ | <pre> | ||
+ | ./hello_world.exe | ||
+ | </pre> | ||
+ | |||
+ | '''Bingo!''' You've just compiled and run, perhaps your first, Fortran90 program. | ||
==Baskets and the Types of Things== | ==Baskets and the Types of Things== |
Revision as of 21:17, 31 January 2008
Fortran1: The Basics
We'll forge our path through the lush garden of Fortran90 using a number of examples. To get your copy of these examples, from the version control repository, login to your favourite linux machine (perhaps dylan), and type:
svn co http://source.ggy.bris.ac.uk/subversion/fortran1/trunk --username=guest ./fortran1
hello, world
Without further ado, and in-keeping with the most venerable of traditions, let's meet our first example--"hello, world":
cd fortran1/examples/example1
and type:
make
Now type:
./hello_world.exe
Bingo! You've just compiled and run, perhaps your first, Fortran90 program.