Example Compiler Output

solak@solak:~/Workdir/tempdir$ gfortran tryfortran.f90
tryfortran.f90:7:25:

 real, dimension(1:n) :: x
                         1
Error: Unexpected data declaration statement at (1)
tryfortran.f90:11:1:

  pring*, x
 1
Error: Unclassifiable statement at (1)
tryfortran.f90:10:4:

     x(k)=k
    1
Error: Function x at (1) has no IMPLICIT type
tryfortran.f90:9:3:

 do k= ib, fb, (fb-ib)/n
   1
Warning: Deleted feature: Loop variable at (1) must be integer
tryfortran.f90:9:5:

 do k= ib, fb, (fb-ib)/n
     1
Warning: Deleted feature: Start expression in DO loop at (1) must be integer
tryfortran.f90:9:9:

 do k= ib, fb, (fb-ib)/n
         1
Warning: Deleted feature: End expression in DO loop at (1) must be integer
tryfortran.f90:9:13:

 do k= ib, fb, (fb-ib)/n
             1
Warning: Deleted feature: Step expression in DO loop at (1) must be integer

External Libraries for Scientific Computing

  • Lapack, Scalapack, Blas
  • PETSc, or/and Trilinos

Install Libraries from Source

Often it is as simple as following 3 lines of commands.

./configure --prefix
make
make install

Project Management with CMAKE

Please see the example which demonstrates how to use cmake. Please read CMakeLists.txt file in detail. Note that there are commented lines which can be useful in another use.

This example also shows how to use a C program from a Fortran code.

Version Control, Intro. GIT

Please see tutorials and cheatsheets.