Skip to content

Coupling fabm with fabm-deb model? #38

Answered by jornbr
tongyaopu asked this question in Q&A
Discussion options

You must be logged in to vote

To build the 0D driver you only need a single cmake command. You can make it include additional biogeochemical models such as fabm-deb with command line options -DFABM_INSTITUTES and -DFABM_DEB_BASE as you have been doing. In your case, this may work:

cd ~/build/fabm0d

FABMDIR="~/src/fabm" 	# Path to FABM source code
GOTMDIR="~/src/GOTM6" 	# Path to GOTM source code 
compiler="/opt/homebrew/bin/gfortran" 	# fortran compiler on this computer

cmake $FABMDIR/src/drivers/0d -DGOTM_BASE=$GOTMDIR -DCMAKE_Fortran_COMPILER=$compiler -DFABM_INSTITUTES=deb -DFABM_DEB_BASE=/Users/tongyaop/src/fabm-deb
make install

However, FABM_INSTITUTES specifies the full set of biogeochemical models that need …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tongyaopu
Comment options

Answer selected by tongyaopu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants