The following briefly goes through the steps of installing FABM-ECOSMO to HYCOM model.
Create a BGC top folder.
mkdir -p ${HOME}/FABMYou will need the following clones to be able to run ECOSMO with HYCOM:
cd ${HOME}/FABM/
git clone https://github.com/fabm-model/fabm.git
git clone https://github.com/pmlmodelling/ersem.git
git clone https://github.com/nansencenter/nersc.git
git clone -b v6.0 --recurse-submodules https://github.com/gotm-model/code.git gotmrm -rf ${HOME}/FABM/build
mkdir ${HOME}/FABM/build && cd ${HOME}/FABM/build/For coupling to HYCOM:
cmake ${HOME}/FABM/fabm \
-DFABM_HOST=hycom \
-DCMAKE_Fortran_COMPILER=ifort \
-DFABM_INSTITUTES="ersem;nersc;gotm" \
-DFABM_NERSC_BASE=${HOME}/FABM/nersc \
-DFABM_ERSEM_BASE=${HOME}/FABM/ersem
make installFor coupling to GOTM (1-d model):
cmake ${HOME}/FABM/gotm \
-DFABM_BASE=${HOME}/FABM/fabm \
-DCMAKE_Fortran_COMPILER=ifort \
-DFABM_INSTITUTES="ersem;nersc;gotm" \
-DFABM_NERSC_BASE=${HOME}/FABM/nersc \
-DFABM_ERSEM_BASE=${HOME}/FABM/ersem
make installAdd the following lines to EXPT.src file:
export COMPILE_BIOMODEL="yes"
IMPORTANT If you are running the operational model or activating sea-ice algae, add the following line as well:
export IA_DRIFT="yes"
Make sure the following entries in blkdat.input files are as follows:
1 'ntracr' = number of tracers (0=none,negative (i.e. -1) to initialize from climatology)
1 'trcrlx' = activate lat. bound. tracer nudging (0=F,1=T)
If you do not have hycom_fabm.nml file, create it. Make sure hycom_fabm.nml looks like the following, especially for the operational model. For other use cases, for example if you are not running with nesting, remove nested_variables line. If you are not running with ice-algae, set do_icealgae = .false.. Other lines can be set to .false. if you are debugging the code.
&hycom_fabm
do_vertical_movement = .true.
do_interior_sources = .true.
do_bottom_sources = .true.
do_surface_sources = .true.
do_icealgae = .true.
nested_variables = 'ECO_no3','ECO_pho','ECO_sil'
/
Copy the fabm.yaml file into experiment folder. If you are running the operational model:
cp $HOME/FABM/nersc/ecosmo/fabm.yaml.operational ./fabm.yamlIf you are NOT running the operational model:
cp $HOME/FABM/nersc/ecosmo/fabm.yaml ./fabm.yaml$HOME/NERSC-HYCOM-CICE/bin/compile_model.sh ifort -uYou are expected to have a working copy of relaxation and river forcing files. If this is not your first time, just copy the relaxation and river old experiment number folder as you current experiment number folder. Otherwise, execute:
./create_ref_case.sh