Skip to content

Commit

Permalink
Merge pull request #30 from NOAA-EMC/develop
Browse files Browse the repository at this point in the history
Bugfix i2a & Add Orion to module-setup (NOAA-EMC#61)
  • Loading branch information
DeniseWorthen authored May 12, 2020
2 parents 25cc1d5 + e88fd93 commit 4262519
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
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 /work/noaa } ) then
# We are on Orion
if ( ! { module help >& /dev/null } ) then
source /apps/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
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 /work/noaa ]] ; then
# We are on Orion
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /apps/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
Expand Down
2 changes: 1 addition & 1 deletion src/module_MEDIATOR.F90
Original file line number Diff line number Diff line change
Expand Up @@ -5455,7 +5455,7 @@ subroutine MedPhase_prep_ocn(gcomp, rc)
!--- merges to ocn
!---------------------------------------

if (is_local%wrap%i2a_active) then
if ((is_local%wrap%i2o_active) .and. (is_local%wrap%a2o_active))then

! atm and ice fraction
! atmwgt and icewgt are the "normal" fractions
Expand Down

0 comments on commit 4262519

Please sign in to comment.