31
31
# Clone regressions directory
32
32
- git clone --recursive http://gitlab.gfdl.noaa.gov/ogrp/Gaea-stats-MOM6-examples.git tests && cd tests
33
33
# Install / update testing scripts
34
- - git clone https://github.com/adcroft/MRS.git MRS
34
+ - git clone -b new-code-struct https://github.com/adcroft/MRS.git MRS
35
35
# Update MOM6-examples and submodules
36
36
- (cd MOM6-examples && git checkout . && git checkout dev/gfdl && git pull && git submodule init && git submodule update)
37
37
- (cd MOM6-examples/src/MOM6 && git submodule update)
@@ -60,7 +60,7 @@ gnu:ocean-only-nolibs:
60
60
- time tar zxf $CACHE_DIR/tests_$CI_PIPELINE_ID.tgz && cd tests
61
61
- make -f MRS/Makefile.build build/gnu/env && cd build/gnu
62
62
# mkdir -p build/gnu/repro/symmetric_dynamic/ocean_only && cd build/gnu/repro/symmetric_dynamic/ocean_only
63
- - ../../MOM6-examples/src/mkmf/bin/list_paths -l ../../../config_src/{solo_driver,dynamic_symmetric,ext*} ../../../src ../../MOM6-examples/src/FMS
63
+ - ../../MOM6-examples/src/mkmf/bin/list_paths -l ../../../config_src/{drivers/ solo_driver,memory/ dynamic_symmetric,infra/FMS1 ,ext*} ../../../src ../../MOM6-examples/src/FMS
64
64
- sed -i '/FMS\/.*\/test_/d' path_names
65
65
- ../../MOM6-examples/src/mkmf/bin/mkmf -t ../../MOM6-examples/src/mkmf/templates/ncrc-gnu.mk -p MOM6 -c"-Duse_libMPI -Duse_netCDF" path_names
66
66
- time (source ./env ; make NETCDF=3 REPRO=1 MOM6 -s -j)
@@ -73,7 +73,7 @@ gnu:ice-ocean-nolibs:
73
73
- time tar zxf $CACHE_DIR/tests_$CI_PIPELINE_ID.tgz && cd tests
74
74
- make -f MRS/Makefile.build build/gnu/env && cd build/gnu
75
75
# mkdir -p build/gnu/repro/symmetric_dynamic/ocean_only && cd build/gnu/repro/symmetric_dynamic/ocean_only
76
- - ../../MOM6-examples/src/mkmf/bin/list_paths -l ../../../config_src/{coupled_driver,dynamic ,ext*} ../../../src ../../MOM6-examples/src/{FMS,coupler,SIS2,icebergs,ice_param,land_null,atmos_null}
76
+ - ../../MOM6-examples/src/mkmf/bin/list_paths -l ../../../config_src/{drivers/FMS_cap,memory/dynamic_nonsymmetric,infra/FMS1 ,ext*} ../../../src ../../MOM6-examples/src/{FMS,coupler,SIS2,icebergs,ice_param,land_null,atmos_null}
77
77
- sed -i '/FMS\/.*\/test_/d' path_names
78
78
- ../../MOM6-examples/src/mkmf/bin/mkmf -t ../../MOM6-examples/src/mkmf/templates/ncrc-gnu.mk -p MOM6 -c"-Duse_libMPI -Duse_netCDF -D_USE_LEGACY_LAND_ -Duse_AM3_physics" path_names
79
79
- time (source ./env ; make NETCDF=3 REPRO=1 MOM6 -s -j)
@@ -117,11 +117,36 @@ run:
117
117
- time tar zxf $CACHE_DIR/build-pgi-repro-$CI_PIPELINE_ID.tgz
118
118
# time tar zxf $CACHE_DIR/build-gnu-debug-$CI_PIPELINE_ID.tgz
119
119
- (echo '#!/bin/tcsh';echo 'make -f MRS/Makefile.tests all') > job.sh
120
- - sbatch --clusters=c3,c4 --nodes=29 --time=0:34:00 --account=gfdl_o --qos=debug --job-name=mom6_regressions --output=log.$CI_PIPELINE_ID --wait job.sh
120
+ - sbatch --clusters=c3,c4 --nodes=29 --time=0:34:00 --account=gfdl_o --qos=debug --job-name=mom6_regressions --output=log.$CI_PIPELINE_ID --wait job.sh || MJOB_RETURN_STATE=Fail
121
121
- cat log.$CI_PIPELINE_ID
122
+ - test -z "$MJOB_RETURN_STATE"
122
123
- test -f restart_results_gnu.tar.gz
123
124
- time tar zvcf $CACHE_DIR/results-$CI_PIPELINE_ID.tgz *.tar.gz
124
125
126
+ gnu.testing :
127
+ stage : run
128
+ tags :
129
+ - ncrc4
130
+ script :
131
+ - cd .testing
132
+ - module unload PrgEnv-pgi PrgEnv-intel PrgEnv-gnu darshan ; module load PrgEnv-gnu ; module unload netcdf gcc ; module load gcc/7.3.0 cray-hdf5 cray-netcdf
133
+ - make work/local-env
134
+ - make -s -j
135
+ - (echo '#!/bin/bash';echo '. ./work/local-env/bin/activate';echo 'make MPIRUN="srun -mblock --exclusive" test -s -j') > job.sh
136
+ - sbatch --clusters=c3,c4 --nodes=5 --time=0:05:00 --account=gfdl_o --qos=debug --job-name=MOM6.gnu.testing --output=log.$CI_PIPELINE_ID --wait job.sh || cat log.$CI_PIPELINE_ID && make test
137
+
138
+ intel.testing :
139
+ stage : run
140
+ tags :
141
+ - ncrc4
142
+ script :
143
+ - cd .testing
144
+ - module unload PrgEnv-pgi PrgEnv-intel PrgEnv-gnu darshan; module load PrgEnv-intel; module unload netcdf intel; module load intel/18.0.6.288 cray-hdf5 cray-netcdf
145
+ - make work/local-env
146
+ - make -s -j
147
+ - (echo '#!/bin/bash';echo '. ./work/local-env/bin/activate';echo 'make MPIRUN="srun -mblock --exclusive" test -s -j') > job.sh
148
+ - sbatch --clusters=c3,c4 --nodes=5 --time=0:05:00 --account=gfdl_o --qos=debug --job-name=MOM6.gnu.testing --output=log.$CI_PIPELINE_ID --wait job.sh || cat log.$CI_PIPELINE_ID && make test
149
+
125
150
# Tests
126
151
gnu:non-symmetric :
127
152
stage : tests
0 commit comments