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_PELAGIC 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_PELAGIC generation done! Starting STANDALONE_PELAGIC compilation... STANDALONE_PELAGIC compilation done! Go to $BFMDIR/run/standalone.pelagic 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 (called STANDALONE_PELAGIC). 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:
Simple carbonate equilibrium test (STANDALONE_CO2TEST)
./bfm_configure.sh -gcd -p STANDALONE_CO2TEST
Surface layer model in a temperate pelagic water column with seasonal sinusoidal variability (STANDALONE_PELAGIC)
./bfm_configure.sh -gcd -p STANDALONE_PELAGIC
All details about model description, installation, compilation and model code structure are available in BFM Core Manual (see Documentation section).