Skip to content

Commit

Permalink
enable restart test
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengt900 authored May 16, 2024
1 parent 42e5a53 commit 9ba9a4b
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/cobalt_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,29 @@ jobs:
singularity exec --bind /__w:/__w ../ci/singularity/1d_mom6_cobalt.sif bash linux-build.bash -m docker -p linux-gnu -t debug -f mom6sis2
ls -l -h build/docker-linux-gnu/ocean_ice/debug/MOM6SIS2
- name: Create COBALT_input and COBALT_override
- name: Create COBALT_input and COBALT_override to test MOM-style parameter input and override
working-directory: ../CEFI-regional-MOM6/exps/OM4.single_column.COBALT
run: |
cp ./input.nml_48hr ./input.nml
echo "add cobalt_input_nml ..."
cat <<EOL >> ./input.nml
cat <<EOL >> ./input.nml_48hr
&cobalt_input_nml
parameter_filename = 'COBALT_input','COBALT_override'
/
EOL
cat input.nml
cat input.nml_48hr
cat <<EOL >> ./input.nml_24hr
&cobalt_input_nml
parameter_filename = 'COBALT_input','COBALT_override'
/
EOL
cat input.nml_24hr
cat <<EOL >> ./input.nml_24hr_rst
&cobalt_input_nml
parameter_filename = 'COBALT_input','COBALT_override'
/
EOL
sed -i 's/use_modern_diag=.true./use_modern_diag=.false./' ./input.nml_24hr_rst
cat input.nml_24hr_rst
echo "touch COBALT_input ..."
echo "remin_ramp_scale = 100.0" > COBALT_input
cat COBALT_input
Expand All @@ -91,10 +103,8 @@ jobs:
run: |
echo "Start 1D toy case ..."
pwd
#singularity exec --bind /__w:/__w ../../ci/singularity/1d_mom6_cobalt.sif ./driver.sh
singularity exec --bind /__w:/__w ../../ci/singularity/1d_mom6_cobalt.sif ../../builds/build/docker-linux-gnu/ocean_ice/debug/MOM6SIS2
mv RESTART RESTART_48hrs
mv ocean.stats* RESTART_48hrs
singularity exec --bind /__w:/__w ../../ci/singularity/1d_mom6_cobalt.sif ./driver.sh
#singularity exec --bind /__w:/__w ../../ci/singularity/1d_mom6_cobalt.sif ../../builds/build/docker-linux-gnu/ocean_ice/debug/MOM6SIS2
cat ./RESTART_48hrs/ocean.stats
- name: Check with ref
Expand Down

0 comments on commit 9ba9a4b

Please sign in to comment.