Skip to content

Commit

Permalink
Updates for non-Baselibs runs
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed May 22, 2024
1 parent 4554930 commit c327f5e
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 11 deletions.
5 changes: 4 additions & 1 deletion gcm_archive.j
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ setenv SITE @SITE
setenv GEOSBIN @GEOSBIN

source $GEOSBIN/g5_modules
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}
if ( $?BASEDIR ) then
setenv @LD_LIBRARY_PATH_CMD ${@LD_LIBRARY_PATH_CMD}:${BASEDIR}/${ARCH}/lib
endif

#######################################################################
# Archive Commands
Expand Down
7 changes: 5 additions & 2 deletions gcm_forecast.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ setenv GEOSBIN @GEOSBIN
setenv GEOSETC @GEOSETC
setenv GEOSUTIL @GEOSSRC

@NATIVE_BUILD source $GEOSBIN/g5_modules
@NATIVE_BUILD setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib:${GEOSDIR}/lib
source $GEOSBIN/g5_modules
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${GEOSDIR}/lib
if ( $?BASEDIR ) then
setenv @LD_LIBRARY_PATH_CMD ${@LD_LIBRARY_PATH_CMD}:${BASEDIR}/${ARCH}/lib
endif

setenv RUN_CMD "@RUN_CMD"

Expand Down
5 changes: 4 additions & 1 deletion gcm_moveplot.j
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ setenv GEOSBIN @GEOSBIN
setenv GEOSUTIL @GEOSSRC

source $GEOSBIN/g5_modules
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}
if ( $?BASEDIR ) then
setenv @LD_LIBRARY_PATH_CMD ${@LD_LIBRARY_PATH_CMD}:${BASEDIR}/${ARCH}/lib
endif

#######################################################################
# Experiment Specific Environment Variables
Expand Down
5 changes: 4 additions & 1 deletion gcm_plot.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ setenv GEOSBIN @GEOSBIN
setenv GEOSUTIL @GEOSSRC

source $GEOSBIN/g5_modules
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}
if ( $?BASEDIR ) then
setenv @LD_LIBRARY_PATH_CMD ${@LD_LIBRARY_PATH_CMD}:${BASEDIR}/${ARCH}/lib
endif

#######################################################################
# Experiment Specific Environment Variables
Expand Down
5 changes: 4 additions & 1 deletion gcm_post.j
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ setenv GEOSUTIL @GEOSSRC
setenv BATCHNAME "@POST_N"

source $GEOSBIN/g5_modules
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}
if ( $?BASEDIR ) then
setenv @LD_LIBRARY_PATH_CMD ${@LD_LIBRARY_PATH_CMD}:${BASEDIR}/${ARCH}/lib
endif

if( $?SLURM_NTASKS ) then
setenv RUN_CMD "@RUN_CMD"
Expand Down
5 changes: 4 additions & 1 deletion gcm_quickstat.j
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ setenv GEOSBIN @GEOSBIN
setenv GEOSUTIL @GEOSSRC

source $GEOSBIN/g5_modules
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}
if ( $?BASEDIR ) then
setenv @LD_LIBRARY_PATH_CMD ${@LD_LIBRARY_PATH_CMD}:${BASEDIR}/${ARCH}/lib
endif

#######################################################################
# Quickstat Commands
Expand Down
6 changes: 5 additions & 1 deletion gcm_regress.j
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ setenv GEOSDIR @GEOSDIR
setenv GEOSBIN @GEOSBIN

source $GEOSBIN/g5_modules
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib:${GEOSDIR}/lib
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${GEOSDIR}/lib
# We only add BASEDIR to the @LD_LIBRARY_PATH_CMD if BASEDIR is defined (i.e., not running with Spack)
if ( $?BASEDIR ) then
setenv @LD_LIBRARY_PATH_CMD ${@LD_LIBRARY_PATH_CMD}:${BASEDIR}/${ARCH}/lib
endif

setenv RUN_CMD "@RUN_CMD"

Expand Down
6 changes: 5 additions & 1 deletion gcm_run.j
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ setenv GEOSETC @GEOSETC
setenv GEOSUTIL @GEOSSRC

source $GEOSBIN/g5_modules
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib:${GEOSDIR}/lib
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${GEOSDIR}/lib
# We only add BASEDIR to the @LD_LIBRARY_PATH_CMD if BASEDIR is defined (i.e., not running with Spack)
if ( $?BASEDIR ) then
setenv @LD_LIBRARY_PATH_CMD ${@LD_LIBRARY_PATH_CMD}:${BASEDIR}/${ARCH}/lib
endif

setenv RUN_CMD "@RUN_CMD"

Expand Down
6 changes: 5 additions & 1 deletion gcm_run_benchmark.j
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ setenv GEOSETC @GEOSETC
setenv GEOSUTIL @GEOSSRC

source $GEOSBIN/g5_modules
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib:${GEOSDIR}/lib
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${GEOSDIR}/lib
# We only add BASEDIR to the @LD_LIBRARY_PATH_CMD if BASEDIR is defined (i.e., not running with Spack)
if ( $?BASEDIR ) then
setenv @LD_LIBRARY_PATH_CMD ${@LD_LIBRARY_PATH_CMD}:${BASEDIR}/${ARCH}/lib
endif

setenv RUN_CMD "@RUN_CMD"

Expand Down
6 changes: 5 additions & 1 deletion scm_run.j
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ setenv GEOSETC @INSTALLDIR/etc
setenv GEOSUTIL @INSTALLDIR

source $GEOSBIN/g5_modules
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${BASEDIR}/${ARCH}/lib:${GEOSDIR}/lib
setenv @LD_LIBRARY_PATH_CMD ${LD_LIBRARY_PATH}:${GEOSDIR}/lib
# We only add BASEDIR to the @LD_LIBRARY_PATH_CMD if BASEDIR is defined (i.e., not running with Spack)
if ( $?BASEDIR ) then
setenv @LD_LIBRARY_PATH_CMD ${@LD_LIBRARY_PATH_CMD}:${BASEDIR}/${ARCH}/lib
endif

setenv RUN_CMD "$GEOSBIN/esma_mpirun -np "

Expand Down

0 comments on commit c327f5e

Please sign in to comment.