| | 1 | = Fortran codes = |
| | 2 | == Hello World == |
| | 3 | {{{#!fortran |
| | 4 | !hello.f90: display a message on the screen |
| | 5 | program helloworld |
| | 6 | print *, "Hello, F90 world." |
| | 7 | end program helloworld |
| | 8 | }}} |
| | 9 | |
| | 10 | == Compile with GNU Fortran == |
| | 11 | {{{gfortran hello.f90}}} |
| | 12 | |
| | 13 | == Compile with PGI Fortran == |
| | 14 | {{{pgf90 hello.f90}}} |
| | 15 | |
| | 16 | == Compile with Intel Fortran == |
| | 17 | {{{ifort hello.f90}}} |
| | 18 | |
| | 19 | == Links for tutorial == |
| | 20 | * [[http://en.wikibooks.org/wiki/Fortran|wikibooks]] |
| | 21 | |
| | 22 | == Examples of Job Script == |
| | 23 | [[https://wiki.hpc.tulane.edu/trac/wiki/cypress/Programming/Cexamples#ExamplesofJobscript|See Examples]] |
| | 24 | |
| | 25 | == Parallel Fortran == |
| | 26 | * [[cypress/Programming/FortranExamples/OpenMpFortran|OpenMP examples in Fortran]] |
| | 27 | * [[cypress/Programming/FortranExamples/MpiFortran|MPI examples in Fortran]] |
| | 28 | |
| | 29 | == More Examples == |
| | 30 | * [[cypress/Programming/ApproximatePi|Approximate Pi]] |
| | 31 | * [[cypress/Programming/HeatMassTransfer|Heat/Mass Transfer]] |
| | 32 | * [[cypress/Programming/StokesFlow|Stokes Flow In a Cavity]] |
| | 33 | * [[cypress/Programming/ParticleStrengthExchangeMethod|Particle Strength Exchange Method]] |