Skip to content

Commit

Permalink
Merge pull request NCAR#1 from climbfuji/hera_support
Browse files Browse the repository at this point in the history
Add support for hera/juno (theia successor)
  • Loading branch information
climbfuji authored Aug 17, 2019
2 parents 6bf8109 + 5b244ab commit 1c71222
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/conf/module-setup.csh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ if ( { test -d /lfs3 } ) then
source /apps/lmod/lmod/init/$__ms_shell
endif
module purge
#else if ( { test -d /scratch1 } ) then
else if ( { test -d /tds_scratch1 } ) then
# We are on NOAA Hera
if ( ! { module help >& /dev/null } ) then
source /apps/lmod/lmod/init/$__ms_shell
endif
module purge
else if ( { test -d /scratch3 } ) then
# We are on NOAA Theia
if ( ! { module help >& /dev/null } ) then
Expand Down
7 changes: 7 additions & 0 deletions src/conf/module-setup.sh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ if [[ -d /lfs3 ]] ; then
source /apps/lmod/lmod/init/$__ms_shell
fi
module purge
#elif [[ -d /scratch1 ]] ; then
elif [[ -d /tds_scratch1 ]] ; then
# We are on NOAA Hera
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /apps/lmod/lmod/init/$__ms_shell
fi
module purge
elif [[ -d /scratch3 ]] ; then
# We are on NOAA Theia
if ( ! eval module help > /dev/null 2>&1 ) ; then
Expand Down
8 changes: 8 additions & 0 deletions src/incmake/env/rdhpcs/detect.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ else
ifneq (,$(shell hostname | grep -i gaea))
NEMS_COMPILER?=intel
$(call add_build_env,gaea.$(NEMS_COMPILER),env/rdhpcs/gaea.$(NEMS_COMPILER).mk)
else
# DH*
#ifneq (,$(and $(wildcard /scratch1),$(wildcard /scratch2)))
ifneq (,$(wildcard /tds_scratch1))
# *DH juno test system
NEMS_COMPILER?=intel
$(call add_build_env,hera.$(NEMS_COMPILER),env/rdhpcs/hera.$(NEMS_COMPILER).mk)
endif
endif
endif
endif
7 changes: 7 additions & 0 deletions src/incmake/env/rdhpcs/hera.intel.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
MACHINE_ID=hera
FULL_MACHINE_ID=hera
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,200000)

0 comments on commit 1c71222

Please sign in to comment.