Navigation
index
next
|
previous
|
AMS 129, Fall 2018 0.1.1 documentation
»
Lecture Notes
»
Previous topic
Accessing the Network Resources
Next topic
Basics of Fortran
This Page
Show Source
Quick search
Chapter 2. Fortran
ΒΆ
Basics of Fortran
History
Fortran 77
Fortran 90/95
Why Fortran?
Compilers
File extensions
Compiling, linking, and running a Fortran code
Sample codes
Intrinsic functions
Default 8-byte real numbers
Fortran Arrays
Loops
if-then-else
Booleans
Line Continuation
Fortran Flags
Double precision flags
Output flags
Warning flags
Debugging flags
Optimization flags
Flags with command line compilations vs. Makefile
Practical gfortran flags for development and production run
Further reading
Fortran subroutines and functions
Functions
Modifying arguments
The use of
intent
Subroutines
Subroutine in a module
Fortran array storage
Passing rank 1 arrays to subroutines, Fortran 77 style
Fortran arrays of higher rank
Why do we care how arrays are stored?
Fortran modules
Some reasons to use modules
Compiling modules
Circles module example
Module variables
Makefiles
Makefile Rules
Makeifle examples
Fortran Input / Output
Formats vs. unformatted
Writing to a file
Reading input
Fortran debugging
Print statements
Compiling with various gfortran flags
The
gdb
debugger
Valgrind
Totalview
External Libraries for Scientific Computing
Advantages of using external libraries
About BLAS and LAPACK
Installing BLAS and LAPACK
Navigation
index
next
|
previous
|
AMS 129, Fall 2018 0.1.1 documentation
»
Lecture Notes
»