Skip to content

Commit

Permalink
Notes and some generalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Nov 25, 2024
1 parent 5847b21 commit aa26038
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .dev/utils/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ else
GC=YES
RUNID=GISS_GC_14
# Copy over configuration files
HUGE_SPACE=${HOME}/data/giss-gc/huge_space/${RUNID}
PROD_RUNS=${HOME}/run/giss-gc/prod_runs/${RUNID}
HUGE_SPACE=${ModelE_Support}/huge_space/${RUNID}
PROD_RUNS=${ModelE_Support}/prod_runs/${RUNID}
for RUNDIR in ${HUGE_SPACE} ${PROD_RUNS}; do
ln -s -f ${GISS_HOME}/geoschem_config.yml ${RUNDIR}/geoschem_config.yml
ln -s -f ${GISS_HOME}/HEMCO_Config.rc ${RUNDIR}/HEMCO_Config.rc
Expand Down
2 changes: 1 addition & 1 deletion .dev/utils/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ else
fi

# Navigate to the run directory and run the model for one hour
cd ~/run/giss-gc/prod_runs/${RUNID}
cd ${ModelE_Support}/prod_runs/${RUNID}
./${RUNID}ln
mpiexec -np ${NP} ./${RUNID}.exe -i I -cold-restart
11 changes: 7 additions & 4 deletions .dev/utils/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
# Envronment variables for GISS modelE
# NOTE: Path may need to be edited for your system
export GISS_HOME=${SOFTWARE}/GISS-GC
# NOTE: Path may need to be edited for your system
export ModelE_Support=${HOME}/run/giss-gc
mkdir -p ${ModelE_Support}
# Environment variables for compiler
export CC=gcc
export CXX=g++
export FC=gfortran
export CC=gcc # NOTE: C compiler may need to be modified for your system
export CXX=g++ # NOTE: C++ compiler may need to be modified for your system
export FC=gfortran # NOTE: Fortran compiler may need to be modified for your system
export F90=${FC}
export F77=${FC}
# Misc. enviroment variables
Expand All @@ -20,8 +21,10 @@ export KMP_STACKSIZE=100000000
export OMP_NUM_THREADS=1

# Spack setup
# NOTE: This section may need to be edited for your setup
spack env activate -p giss-gc
export MPI_ROOT=${HOME}/software/spack/opt/spack/linux-ubuntu22.04-skylake/gcc-11.4.0/openmpi-4.1.6-s3fu5gvaasgjy4jecnb6rvemx7oofexx
MPIF90=$(find ${SPACK_ENV} -name mpif90 | head -n 1)
export MPI_ROOT=${MPIF90%/bin/mpif90}

# Environment variables for passing NetCDF-C paths to GEOS-Chem
export NETCDF_HOME=$(nc-config --prefix)
Expand Down

0 comments on commit aa26038

Please sign in to comment.