Fortran1

From SourceWiki
Revision as of 21:17, 31 January 2008 by GethinWilliams (talk | contribs)
Jump to navigation Jump to search

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.

Baskets and the Types of Things

If, Do, Select and Other Ways to Control the Flow

Not one, Many!

If Things get Hectic, Outsource!

You can Have That, and I'll Have This