Skip to content

Commit

Permalink
Fixing gotm version (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wathen authored Mar 19, 2021
1 parent 6af80e1 commit 678122f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 4 additions & 5 deletions conda.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

git clone https://github.com/fabm-model/fabm.git
git clone https://github.com/gotm-model/code.git gotm
cd gotm && git submodule update --init --recursive && cd ..
git clone --recursive https://github.com/gotm-model/code.git -b v6.0 gotm

mkdir build_pyfabm && cd build_pyfabm
cmake ../fabm/src/drivers/python -DFABM_ERSEM_BASE=.. -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX
cmake ../fabm/src/drivers/python -DFABM_ERSEM_BASE=$SRC_DIR -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX
# This makes sure pyfabm is built in the correct enviroment
# Will be changed once pyfabm install is updated.
sed -i -e 's/--user//g' cmake_install.cmake
Expand All @@ -13,13 +12,13 @@ make install DESTDIR=$PREFIX
cd ..

mkdir build_0d && cd build_0d
cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX ../fabm/src/drivers/0d -DGOTM_BASE=../gotm -DFABM_ERSEM_BASE=..
cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX ../fabm/src/drivers/0d -DGOTM_BASE=../gotm -DFABM_ERSEM_BASE=$SRC_DIR
make -j${CPU_COUNT}
make install
cd ..

mkdir build_gotm && cd build_gotm
cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX ../gotm -DFABM_BASE=../fabm -DFABM_ERSEM_BASE=..
cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX ../gotm -DFABM_BASE=../fabm -DFABM_ERSEM_BASE=$SRC_DIR
make -j${CPU_COUNT}
make install
cd ..
Expand Down
3 changes: 1 addition & 2 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ package:
version: 20.10

source:
path: ..

git_url: https://github.com/pmlmodelling/ersem.git

requirements:
build:
Expand Down

0 comments on commit 678122f

Please sign in to comment.