diff --git a/.dev/utils/build.sh b/.dev/utils/build.sh index f061ad4..d865909 100755 --- a/.dev/utils/build.sh +++ b/.dev/utils/build.sh @@ -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 diff --git a/.dev/utils/run.sh b/.dev/utils/run.sh index 36b3444..c59d459 100755 --- a/.dev/utils/run.sh +++ b/.dev/utils/run.sh @@ -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 diff --git a/.dev/utils/setup.sh b/.dev/utils/setup.sh index 187912c..605c83b 100755 --- a/.dev/utils/setup.sh +++ b/.dev/utils/setup.sh @@ -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 @@ -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)