amanzi / ats

Advanced Terrestrial Simulator (ATS) development
Other
47 stars 35 forks source link

Implement CLM as a PK or evaluator in ATS #40

Open ecoon opened 4 years ago

ecoon commented 4 years ago

the CLM repo at:

https://github.com/amanzi/pf-clm

has been included in ATS now, and in Amanzi. It may not actually work though...

ecoon commented 4 years ago

Ok, so now there is a branch of ats-demos that includes a running clm.xml input file...

https://github.com/amanzi/ats-demos/tree/clm_update

That test can be extended to improve debugging of both CLM and ATS's use of CLM.

ecoon commented 4 years ago

To run this, you need Amanzi's master branch, with a bootstrap command that looks something like this:

./bootstrap.sh \
--debug --relwithdebinfo_tpls --debug_trilinos \
--parallel=8 \
--tools-mpi=openmpi --with-mpi=/usr/local/Cellar/open-mpi/3.1.3/ \
--tpl-build-dir=${AMANZI_TPLS_BUILD_DIR} --tpl-install-prefix=${AMANZI_TPLS_DIR} \
--amanzi-build-dir=${AMANZI_BUILD_DIR} --amanzi-install-prefix=${AMANZI_DIR} \
--tpl-download-dir=/Users/uec/codes/ats/amanzi-tpls/Downloads/ \
--disable-structured \
--disable-stk_mesh \
--disable-petsc \
--disable-alquimia \
--disable-amanzi_physics \
--disable-crunchtope \
--disable-pflotran \
--disable-geochemistry \
--disable-amanzi_physics \
--enable-ats_physics \
--enable-shared \
--enable-clm \
--with-c-compiler=`which mpicc` --with-cxx-compiler=`which mpicxx` --with-fort-compiler=`which mpifort`

Where you have made sure you set the variables right and change the --with-mpi directory to your mpi path location (basically do a "which mpicc" then copy-paste in all but the "bin/mpicc" to that option).

Then check out ats-demos branch clm_update:

git clone https://github.com/amanzi/ats-demos -b clm_update ats-demos-clm_update
cd ats-demos-clm_update/05_ecohydrology/clm.demos
ats --xml_file=../clm.xml