The configure script produces a Makefile.
It is controlled by environment variables (see below). It tries to use reasonable default values if they are not set (properly). In the script the machine type is determined with `uname -m`. According to the control variables and the machine architecture the compiler name and its compiler flags are composed. These are written into the header of a Makefile which is produced in the end. An existing Makefile is appended to
Makefile_old.Additionally the compilation command is written into the file
'compiler_flags.info'in a form ready to be included in a Fortran program.
The environment variables that control the script are
F90_COMPILER:
'': a machine dependent default is chosen individually for each architecture
f90: general default
F90_PREFLAGS:
'': No extra flags
F90_POSTFLAGS:
'': No extra flags
F90_PARALLEL:
scalar: no parallelization (default)
openmp: OpenMP (appropriate for CO5BOLD)
auto: auto-parallelization (not implemented for all machines)
F90_DEBUG:
0: No extra debugging information produced,
full optimization is chosen (default)
1: standard debugging mode (typically switch '-g' instead of '-fast')
2: other debugging (or array checking) modes possible if
implemented for the requested machine
F90_LHDRAD:
0: do not activate (compile and link) this module (default)
1: activate this radiation transport module
F90_MSRAD:
0: do not activate (compile and link) this module (default)
1: activate this radiation transport module
F90_SHORTRAD:
0: do not activate (compile and link) this module (default)
1: activate this radiation transport module
F90_CHEM:
0: do not activate (compile and link) this module (default)
1: activate this source step module
F90_DUST=1.
The compiler is then called with -Drhd_chem01.
F90_HION:
0: do not activate (compile and link) this module (default)
1: activate this source step module
F90_DUST=1.
The compiler is then called with -Drhd_hion01.
F90_DUST:
0: do not activate (compile and link) this module (default)
1: activate this source step module
-Drhd_box_quc01=1,
see Sect. 3.6.
F90_MHD:
0: do not activate (compile and link) this module (default)
1: activate this magnetohydrodynamics module (MHD HLL solver)
F90_MACHINE:
'': local machine
sun4u: Sun
local: local machine (default)
dummy: Do not use any machine dependent flags but use module selections
empty: Compiler flags are composed from F90_PREFLAGS and F90_POSTFLAGS only
F90_BASEPATH:
'': The configure script tries to determine the base-directory name
automatically (default). This should work if the local directory is
located somewhere below .../hd/rhd/
/home/user/for)
Some examples can be found in Sect. 3.2.