Skip to content

Commit

Permalink
add s4 rules (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerorahul authored Apr 6, 2020
1 parent 40b30d5 commit 16e1b94
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/conf/module-setup.csh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ else if ( { test -d /scratch1 -a ! -d /scratch } ) then
source /apps/lmod/lmod/init/$__ms_shell
endif
module purge
else if ( { test -d /data } ) then
# We are on SSEC Wisconsin S4
if ( ! { module help >& /dev/null } ) then
source /usr/share/lmod/lmod/init/$__ms_shell
endif
module purge
else if ( { test -d /gpfs/hps -a -e /etc/SuSE-release } ) then
# We are on NOAA Luna or Surge
if ( ! { module help >& /dev/null } ) then
Expand Down
6 changes: 6 additions & 0 deletions src/conf/module-setup.sh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ elif [[ -d /scratch1 && ! -d /scratch ]] ; then
source /apps/lmod/lmod/init/$__ms_shell
fi
module purge
elif [[ -d /data ]] ; then
# We are on SSEC Wisconsin S4
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /usr/share/lmod/lmod/init/$__ms_shell
fi
module purge
elif [[ -d /gpfs/hps && -e /etc/SuSE-release ]] ; then
# We are on NOAA Luna or Surge
if ( ! eval module help > /dev/null 2>&1 ) ; then
Expand Down
1 change: 1 addition & 0 deletions src/incmake/buildenv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ include $(call locate_incmake_file,env/app_extras/detect.mk)
include $(call locate_incmake_file,env/wcoss/detect.mk)
include $(call locate_incmake_file,env/rdhpcs/detect.mk)
include $(call locate_incmake_file,env/cisl/detect.mk)
include $(call locate_incmake_file,env/ssec/detect.mk)
include $(call locate_incmake_file,env/intel/detect.mk)
include $(call locate_incmake_file,env/tacc/detect.mk)
include $(call locate_incmake_file,env/lrz/detect.mk)
Expand Down
10 changes: 10 additions & 0 deletions src/incmake/env/ssec/detect.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
########################################################################
#
# Main driver for SSEC Wisconsin S4 machine support
#
########################################################################

ifneq (,$(wildcard /data ))
NEMS_COMPILER?=intel
$(call add_build_env,s4.$(NEMS_COMPILER),env/ssec/s4.$(NEMS_COMPILER).mk)
endif
7 changes: 7 additions & 0 deletions src/incmake/env/ssec/s4.intel.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
MACHINE_ID=s4
FULL_MACHINE_ID=s4
USE_MODULES=YES
DEFAULT_MODULE=$(FULL_MACHINE_ID)/ESMF_NUOPC
BUILD_TARGET=$(FULL_MACHINE_ID).$(NEMS_COMPILER)
NEMS_COMPILER=intel
MODULE_LOGIC=$(call ULIMIT_MODULE_LOGIC,60000)

0 comments on commit 16e1b94

Please sign in to comment.