Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build NEMS on S4 #49

Merged
merged 1 commit into from
Apr 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)