Last active
January 30, 2020 06:03
-
-
Save ScottWales/fd4814bfeaf714db3923eaeb4e07219c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eux | |
# Set up your run directory following https://accessdev.nci.org.au/trac/wiki/access/ACCESS1.0_raijin | |
# Also add oasis3 to submodels/ with 'svn co https://access-svn.nci.org.au/svn/oasis/branches/oasis3_cmip5' | |
# Number of processors CICE will be assigned | |
CICE_PROCS=6 | |
# Clear the environment file | |
cat /dev/null > bin/environs.vayu.nci.org.au | |
# Load modules | |
module purge | |
module load intel-compiler/2020.0.166 | |
module load openmpi/4.0.2 | |
module load netcdf/4.7.1 | |
# Compile oasis | |
pushd submodels/oasis3_cmip5/prism/compile | |
#./comp_oasis325.VAYU | |
export CPATH=$PWD/../Linux/build/mod/oasis3.MPI1:$CPATH | |
export CPATH=$PWD/../Linux/build/lib/psmile.MPI1:$CPATH | |
export LIBRARY_PATH=$PWD/../Linux/lib:$LIBRARY_PATH | |
export LIBRARY_PATH=$PWD/../Linux/lib/oasis3:$LIBRARY_PATH | |
popd | |
# Compile CICE | |
pushd submodels/cice4.1_cmip5 | |
# Fixes for Gadi | |
sed -i \ | |
-e 's:source ${HOME}/bin:source $cwd/../../bin:' \ | |
-e 's:$HOME/ACCESS:$cwd/../..:' \ | |
-e 's:\<cice4.1\>:cice4.1_cmip5:' \ | |
comp_access_cice4_VAYU | |
sed -i \ | |
-e 's:-lnetcdf$:-lnetcdff:' \ | |
bld/Macros.Linux.vayu.nci.org.au | |
#./comp_access_cice4_VAYU $CICE_PROCS | |
popd | |
# Compile MOM | |
pushd submodels/mom4p1_cmip5_raijin/compile | |
# Fixes for Gadi | |
sed -i \ | |
-e 's:/apps/openmpi/.*/::' \ | |
-e 's:-lsma::' \ | |
-e 's:-lnetcdf -lmpi:-lnetcdff -lnetcdf -lmpi:' \ | |
../bin/mkmf.template.vayu.nci.org.au | |
./comp_auscom_mom4p1.VAYU | |
popd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment