Configuration and deployment of the model is done automatically by the script bfm_configure.sh found in the build directory. The minimal user local settings for compilation is provided by means of the environmental shell variable BFMDIR
export BFMDIR=/path/to/bfm cd $BFMDIR/build ./bfm_configure.sh -h
The user-dependent options are set either through the command line of the script or by adjusting (or adding) an architecture file in directory $BFMDIR/compilers. Default file is gfortran.inc. The standard GNU gmake variables are used for compiler and archiver names. Remember to add the right path for the NetCDF library files in the appropriate .inc file.
If preset is not specified (see below), the STANDALONE configuration is compiled by default with the command
(see the script help for details on the options) and if successful will produce the following output
.................................. Makefile is ready. STANDALONE generation done! Starting STANDALONE compilation... STANDALONE compilation done! Go to $BFMDIR/run/standalone and execute command: ./bfm_standalone.x
The execution of the configuration script creates the executable and the running environment for the default preset of the STANDALONE model. The list of the available presets is obtained with the command
The generated namelists are copied to the directory $BFMDIR/run/standalone.pelagic and the model is run by executing
./bfm_standalone.x (./bfm_standalone.x &> outputfile to redirect the output messages to a file in bash.)
The following test cases are available:
Surface layer model in a temperate pelagic water column with seasonal sinusoidal variability (STANDALONE)
./bfm_configure.sh -gcd -p STANDALONE
Seaice ecosystem layer mode under realistic external forcings (STANDALONE_SEAICE)
./bfm_configure.sh -gcd -p STANDALONE_SEAICE
All details about model description, installation, compilation and model code structure are available in BFM Core Manual (see Documentation section).