Skip to content

Commit

Permalink
Merge pull request NCAR#2 from climbfuji/hera_update_20190827
Browse files Browse the repository at this point in the history
gmtb/develop: update hera config
  • Loading branch information
climbfuji authored Aug 27, 2019
2 parents 1c71222 + e142f4e commit 283eeb1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/conf/module-setup.csh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ 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
else if ( { test -d /scratch1 } ) then
# We are on NOAA Hera
if ( ! { module help >& /dev/null } ) then
source /apps/lmod/lmod/init/$__ms_shell
Expand Down
3 changes: 1 addition & 2 deletions src/conf/module-setup.sh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ if [[ -d /lfs3 ]] ; then
source /apps/lmod/lmod/init/$__ms_shell
fi
module purge
#elif [[ -d /scratch1 ]] ; then
elif [[ -d /tds_scratch1 ]] ; then
elif [[ -d /scratch1 ]] ; then
# We are on NOAA Hera
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /apps/lmod/lmod/init/$__ms_shell
Expand Down
19 changes: 8 additions & 11 deletions src/incmake/env/rdhpcs/detect.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,21 @@
#
########################################################################

ifneq (,$(and $(wildcard /scratch4),$(wildcard /scratch3)))
ifneq (,$(and $(wildcard /scratch1),$(wildcard /scratch2),$(shell hostname | grep -i hfe)))
NEMS_COMPILER?=intel
$(call add_build_env,theia.$(NEMS_COMPILER),env/rdhpcs/theia.$(NEMS_COMPILER).mk)
$(call add_build_env,hera.$(NEMS_COMPILER),env/rdhpcs/hera.$(NEMS_COMPILER).mk)
else
ifneq (,$(and $(wildcard /lfs1),$(wildcard /lfs3)))
ifneq (,$(and $(wildcard /scratch4),$(wildcard /scratch3),$(shell hostname | grep -i tfe)))
NEMS_COMPILER?=intel
$(call add_build_env,jet.$(NEMS_COMPILER),env/rdhpcs/jet.$(NEMS_COMPILER).mk)
$(call add_build_env,theia.$(NEMS_COMPILER),env/rdhpcs/theia.$(NEMS_COMPILER).mk)
else
ifneq (,$(shell hostname | grep -i gaea))
ifneq (,$(and $(wildcard /lfs1),$(wildcard /lfs3)))
NEMS_COMPILER?=intel
$(call add_build_env,gaea.$(NEMS_COMPILER),env/rdhpcs/gaea.$(NEMS_COMPILER).mk)
$(call add_build_env,jet.$(NEMS_COMPILER),env/rdhpcs/jet.$(NEMS_COMPILER).mk)
else
# DH*
#ifneq (,$(and $(wildcard /scratch1),$(wildcard /scratch2)))
ifneq (,$(wildcard /tds_scratch1))
# *DH juno test system
ifneq (,$(shell hostname | grep -i gaea))
NEMS_COMPILER?=intel
$(call add_build_env,hera.$(NEMS_COMPILER),env/rdhpcs/hera.$(NEMS_COMPILER).mk)
$(call add_build_env,gaea.$(NEMS_COMPILER),env/rdhpcs/gaea.$(NEMS_COMPILER).mk)
endif
endif
endif
Expand Down

0 comments on commit 283eeb1

Please sign in to comment.