Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
if: "!contains(github.event.pull_request.labels.*.name, '0 diff trivial')"
runs-on: ubuntu-24.04
container:
image: gmao/ubuntu24-geos-env:v7.32.0-intelmpi_2021.13-ifort_2021.13
image: gmao/ubuntu24-geos-env:v8.14.0-intelmpi_2021.13-ifort_2021.13
# Per https://github.com/actions/virtual-environments/issues/1445#issuecomment-713861495
# It seems like we might not need secrets on GitHub Actions which is good for forked
# pull requests
Expand Down
55 changes: 27 additions & 28 deletions gcm_regress.j
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ set OGCM_NY0 = `grep "^ *OGCM.NY:" AGCM.rc.orig | cut -d':' -f2`
# We can generically set the lengths of startstop and layout tests
# and use those values to set the test durations for the various steps

set length_of_startstop_test = 240000
set length_of_layout_test = 060000
set length_of_startstop_test = 120000
set length_of_layout_test = 030000

# Now for safety, we need to make sure that the test durations
# are divisible by 3 hours due to a limitation in GOCART. We'll use modulo
Expand Down Expand Up @@ -475,7 +475,7 @@ set test_duration_step5 = $test_duration_step2
##################################################################
######
###### Perform Regression Test # 1
###### (1-Day Using NX:NY Layout)
###### (12-Hour Using NX:NY Layout)
######
##################################################################

Expand Down Expand Up @@ -530,7 +530,7 @@ endif
##################################################################
######
###### Perform Regression Test # 2
###### (6-Hour Using NX:NY Layout)
###### (3-Hour Using NX:NY Layout)
######
##################################################################

Expand Down Expand Up @@ -634,7 +634,7 @@ end
##################################################################
######
###### Perform Regression Test # 3
###### (18-Hour Using NX:NY Layout)
###### (9-Hour Using NX:NY Layout)
######
##################################################################

Expand Down Expand Up @@ -710,16 +710,20 @@ endif
##################################################################
######
###### Perform Regression Test # 4
###### (6-Hour Using 1:6 Layout)
###### (3-Hour Using NX:NY/2 Layout)
######
##################################################################

# This case runs only for layout

if ( $RUN_LAYOUT == TRUE) then

set test_NX = 1
set test_NY = 6
set test_NX = ${NX0}
@ test_NY = ${NY0} / 2

if ($test_NY < 6) then
set test_NY = 6
endif

# Copy Original Restarts to Regress directory
# -------------------------------------------
Expand Down Expand Up @@ -759,15 +763,20 @@ if ( $RUN_LAYOUT == TRUE) then
/bin/mv AGCM.rc AGCM.tmp
cat AGCM.tmp | sed -e "s?$oldstring?$newstring?g" > AGCM.rc

# Set the new number of writers and readers
set oldstring = `cat AGCM.rc | grep "^ *NUM_WRITERS:"`
set newstring = "NUM_WRITERS: 6"
/bin/mv AGCM.rc AGCM.tmp
cat AGCM.tmp | sed -e "s?$oldstring?$newstring?g" > AGCM.rc
set oldstring = `cat AGCM.rc | grep "^ *NUM_READERS:"`
set newstring = "NUM_READERS: 6"
/bin/mv AGCM.rc AGCM.tmp
cat AGCM.tmp | sed -e "s?$oldstring?$newstring?g" > AGCM.rc
# MAT: Turning this off for now as it seems to cause
# crazy slowness at times. Will re-enable if cause
# is found and fixed.
###############################################################
# # Set the new number of writers and readers #
# set oldstring = `cat AGCM.rc | grep "^ *NUM_WRITERS:"` #
# set newstring = "NUM_WRITERS: 6" #
# /bin/mv AGCM.rc AGCM.tmp #
# cat AGCM.tmp | sed -e "s?$oldstring?$newstring?g" > AGCM.rc #
# set oldstring = `cat AGCM.rc | grep "^ *NUM_READERS:"` #
# set newstring = "NUM_READERS: 6" #
# /bin/mv AGCM.rc AGCM.tmp #
# cat AGCM.tmp | sed -e "s?$oldstring?$newstring?g" > AGCM.rc #
###############################################################

@COUPLED set oldstring = `cat AGCM.rc | grep "^ *OGCM.NX:"`
@COUPLED set newstring = "OGCM.NX: ${test_NY}"
Expand Down Expand Up @@ -833,7 +842,7 @@ endif
##################################################################
######
###### Perform Regression Test # 5
###### (6-Hour OpenMP:2)
###### (3-Hour OpenMP:2)
######
##################################################################

Expand Down Expand Up @@ -892,16 +901,6 @@ if ( $RUN_OPENMP == TRUE) then
/bin/mv AGCM.rc AGCM.tmp
cat AGCM.tmp | sed -e "s?$oldstring?$newstring?g" > AGCM.rc

# Set the new number of writers and readers
set oldstring = `cat AGCM.rc | grep "^ *NUM_WRITERS:"`
set newstring = "NUM_WRITERS: 6"
/bin/mv AGCM.rc AGCM.tmp
cat AGCM.tmp | sed -e "s?$oldstring?$newstring?g" > AGCM.rc
set oldstring = `cat AGCM.rc | grep "^ *NUM_READERS:"`
set newstring = "NUM_READERS: 6"
/bin/mv AGCM.rc AGCM.tmp
cat AGCM.tmp | sed -e "s?$oldstring?$newstring?g" > AGCM.rc

@COUPLED set oldstring = `cat AGCM.rc | grep "^ *OGCM.NX:"`
@COUPLED set newstring = "OGCM.NX: ${OGCM_NX0}"
@COUPLED /bin/mv AGCM.rc AGCM.tmp
Expand Down
7 changes: 7 additions & 0 deletions gcm_run.j
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,8 @@ if ($OMP_NUM_THREADS > 1) then
setenv KMP_AFFINITY compact
echo OMP_STACKSIZE $OMP_STACKSIZE
echo KMP_AFFINITY $KMP_AFFINITY
./strip GWD_GridComp.rc
sed -i -e "s|FALSE|TRUE|g" GWD_GridComp.rc
endif
echo OMP_NUM_THREADS $OMP_NUM_THREADS

Expand Down Expand Up @@ -1136,6 +1138,11 @@ else
endif
echo GEOSgcm Run Status: $rc

# Reset OpenMP Threads to 1
setenv OMP_NUM_THREADS 1
./strip GWD_GridComp.rc
sed -i -e "s|TRUE|FALSE|g" GWD_GridComp.rc

@MIT # ---------------------------------------------------
@MIT # For MITgcm restarts - after running GEOSgcm.x
@MIT # ---------------------------------------------------
Expand Down