The
Fortran compiler
of the
GNU project
is called with gfortran
.
Important switches are:
-fconvert=big-endian -frecord-marker=4
: With this flag set, binary files in
big_endian
format
(the standard for UIO files)
are automatically transformed to
little_endian
and vice versa. In addition, the old 32-bit record marker convention is maintained
and existing UIO files can be read.
-O3
: General optimization flag.
-fopenmp
: Activates the OpenMP directives, but causes CO5BOLD to crash - currently.
The appropriate UIO module is uio_mac_ieee_module.f90
.
And use rhd_mac_default_module
.
I haven't found out how to use the standard modules, yet.
OpenMP does not work, yet. And the scalar code is significantly slower than code
compiled e.g. with the Intel compiler (see Sect. 3.7.11.
However, the factor is not prohibitive.
For not too demanding test runs the gfortran
compiler can already be useful.