Skip to content

Commit

Permalink
Update ocean_BGC tag, add COBALT_input and override to all experiment…
Browse files Browse the repository at this point in the history
…s, and update NWA12 xml (#48)

* add COBALT_input/COBALT_override,and namelists

* add COBALT_input/override to exps

* Update baselines for NWA12-COBALT

* Update NWA xml to include COBALT_input/override

* Update ocean_BGC tag

* Update NWA12-RT baseline again
  • Loading branch information
yichengt900 authored Jun 7, 2024
1 parent 89ae908 commit 8fb00cd
Show file tree
Hide file tree
Showing 21 changed files with 80 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
path = src/Icepack
url = https://github.com/CICE-Consortium/Icepack.git
branch = Icepack1.3.3
[submodule "src/ocean_BGC"]
path = src/ocean_BGC
url = https://github.com/NOAA-CEFI-Regional-Ocean-Modeling/ocean_BGC.git
branch = dev/cefi
[submodule "src/ice_param"]
path = src/ice_param
url = https://github.com/NOAA-GFDL/ice_param.git
Expand All @@ -46,3 +42,7 @@
path = src/coupler
url = https://github.com/NOAA-GFDL/FMScoupler.git
branch = 2024.01.01
[submodule "src/ocean_BGC"]
path = src/ocean_BGC
url = https://github.com/NOAA-CEFI-Regional-Ocean-Modeling/ocean_BGC.git
branch = dev/cefi
1 change: 1 addition & 0 deletions exps/NEP10.COBALT/INPUT/COBALT_input
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
do_case2_mod = True
Empty file.
5 changes: 5 additions & 0 deletions exps/NEP10.COBALT/input.nml_24hr
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
parameter_filename = 'INPUT/SIS_input','INPUT/SIS_layout','INPUT/SIS_override'
/

&cobalt_input_nml
parameter_filename = 'INPUT/COBALT_input',
'INPUT/COBALT_override'
/

&atmos_model_nml
layout= 1,1
/
Expand Down
5 changes: 5 additions & 0 deletions exps/NEP10.COBALT/input.nml_24hr_rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
parameter_filename = 'INPUT/SIS_input','INPUT/SIS_layout','INPUT/SIS_override'
/

&cobalt_input_nml
parameter_filename = 'INPUT/COBALT_input',
'INPUT/COBALT_override'
/

&atmos_model_nml
layout= 1,1
/
Expand Down
5 changes: 5 additions & 0 deletions exps/NEP10.COBALT/input.nml_48hr
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
parameter_filename = 'INPUT/SIS_input','INPUT/SIS_layout','INPUT/SIS_override'
/

&cobalt_input_nml
parameter_filename = 'INPUT/COBALT_input',
'INPUT/COBALT_override'
/

&atmos_model_nml
layout= 1,1
/
Expand Down
1 change: 1 addition & 0 deletions exps/NWA12.COBALT/INPUT/COBALT_input
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
do_case2_mod = True
Empty file.
2 changes: 1 addition & 1 deletion exps/NWA12.COBALT/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ mv ocean.stats RESTART_24hrs_rst

# Define the directories containing the files
DIR1="./RESTART_24hrs_rst"
DIR2="/gpfs/f5/cefi/proj-shared/github/ci_data/reference/main/NWA12.COBALT/20240531"
DIR2="/gpfs/f5/cefi/proj-shared/github/ci_data/reference/main/NWA12.COBALT/20240606"

# Define the files to compare
FILES=("$DIR2"/*.nc)
Expand Down
5 changes: 5 additions & 0 deletions exps/NWA12.COBALT/input.nml_24hr
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
parameter_filename = 'INPUT/SIS_input','INPUT/SIS_layout','INPUT/SIS_override'
/

&cobalt_input_nml
parameter_filename = 'INPUT/COBALT_input',
'INPUT/COBALT_override'
/

&atmos_model_nml
layout= 1,1
/
Expand Down
5 changes: 5 additions & 0 deletions exps/NWA12.COBALT/input.nml_24hr_rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
parameter_filename = 'INPUT/SIS_input','INPUT/SIS_layout','INPUT/SIS_override'
/

&cobalt_input_nml
parameter_filename = 'INPUT/COBALT_input',
'INPUT/COBALT_override'
/

&atmos_model_nml
layout= 1,1
/
Expand Down
5 changes: 5 additions & 0 deletions exps/NWA12.COBALT/input.nml_48hr
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
parameter_filename = 'INPUT/SIS_input','INPUT/SIS_layout','INPUT/SIS_override'
/

&cobalt_input_nml
parameter_filename = 'INPUT/COBALT_input',
'INPUT/COBALT_override'
/

&atmos_model_nml
layout= 1,1
/
Expand Down
Empty file.
Empty file.
5 changes: 3 additions & 2 deletions exps/OM4.single_column.COBALT/diag_table
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,11 @@ OM4_single_column
#"generic_cobalt ","wc_vert_int_jfe_iceberg","wc_vert_int_jfe_iceberg", "ocean_cobalt_fluxes_int","all","mean","none",2
#"generic_cobalt ","wc_vert_int_jno3_iceberg","wc_vert_int_jno3_iceberg","ocean_cobalt_fluxes_int","all","mean","none",2
#"generic_cobalt ","wc_vert_int_jpo4_iceberg","wc_vert_int_jpo4_iceberg","ocean_cobalt_fluxes_int","all","mean","none",2
"generic_cobalt ","wc_vert_int_jprod_n2amx", "wc_vert_int_jprod_n2amx", "ocean_cobalt_fluxes_int","all","mean","none",2
#"generic_cobalt ","wc_vert_int_jprod_n2amx", "wc_vert_int_jprod_n2amx", "ocean_cobalt_fluxes_int","all","mean","none",2
"generic_cobalt ","wc_vert_int_jnamx", "wc_vert_int_namx", "ocean_cobalt_fluxes_int","all","mean","none",2
"generic_cobalt ","wc_vert_int_net_phyto_resp", "wc_vert_int_net_phyto_resp", "ocean_cobalt_fluxes_int","all","mean","none",2
"generic_cobalt ","wc_vert_int_npp", "wc_vert_int_npp", "ocean_cobalt_fluxes_int","all","mean","none",2
"generic_cobalt ","wc_vert_int_chemoautopp", "wc_vert_int_chemoautopp", "ocean_cobalt_fluxes_int","all","mean","none",2
#"generic_cobalt ","wc_vert_int_chemoautopp", "wc_vert_int_chemoautopp", "ocean_cobalt_fluxes_int","all","mean","none",2
#=======================================
# ocean_cobalt_tracers_month_z
#=======================================
Expand Down
3 changes: 3 additions & 0 deletions exps/OM4.single_column.COBALT/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ echo "Test started: " `date`
echo "run 48hrs test ..."
ln -fs input.nml_48hr input.nml
mpirun --allow-run-as-root -np 1 ../../builds/build/docker-linux-gnu/ocean_ice/debug/MOM6SIS2 > out1 2>err1
tail out1
mv RESTART RESTART_48hrs
mv ocean.stats* RESTART_48hrs

#
echo "run 24hrs test ..."
ln -fs input.nml_24hr input.nml
mpirun --allow-run-as-root -np 1 ../../builds/build/docker-linux-gnu/ocean_ice/debug/MOM6SIS2 > out2 2>err2
tail out2
mv RESTART RESTART_24hrs
mv ocean.stats* RESTART_24hrs

Expand All @@ -30,6 +32,7 @@ popd
echo "run 24hrs rst test ..."
ln -fs input.nml_24hr_rst input.nml
mpirun --allow-run-as-root -np 1 ../../builds/build/docker-linux-gnu/ocean_ice/debug/MOM6SIS2 > out3 2>err3
tail out3
mv RESTART RESTART_24hrs_rst
mv ocean.stats* RESTART_24hrs_rst

Expand Down
6 changes: 6 additions & 0 deletions exps/OM4.single_column.COBALT/input.nml_24hr
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
'SIS_layout',
'SIS_override' /

&cobalt_input_nml
parameter_filename = 'COBALT_input',
'COBALT_override'
/


&atmos_model_nml
layout = 1, 1
/
Expand Down
6 changes: 6 additions & 0 deletions exps/OM4.single_column.COBALT/input.nml_24hr_rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
'SIS_layout',
'SIS_override' /

&cobalt_input_nml
parameter_filename = 'COBALT_input',
'COBALT_override'
/


&atmos_model_nml
layout = 1, 1
/
Expand Down
5 changes: 5 additions & 0 deletions exps/OM4.single_column.COBALT/input.nml_48hr
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
'SIS_layout',
'SIS_override' /

&cobalt_input_nml
parameter_filename = 'COBALT_input',
'COBALT_override'
/

&atmos_model_nml
layout = 1, 1
/
Expand Down
20 changes: 19 additions & 1 deletion xmls/NWA12/CEFI_NWA12_cobalt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ frecheck -r layout -p ncrc5.intel22 -x CEFI_NWA12_cobalt.xml CEFI_NWA12_COBALT_V
do_chksum = .false.
do_endpoint_chksum = .false.
</namelist>
<namelist name ="cobalt_input_nml">
parameter_filename = 'INPUT/COBALT_input','INPUT/COBALT_override'
</namelist>
<namelist name="generic_tracer_nml">
do_generic_tracer=.true.
do_generic_abiotic=.false.
Expand Down Expand Up @@ -591,6 +594,21 @@ cat > $work/INPUT/MOM_override << MOM_OVERRIDE_EOF
#override DT_THERM = 1200.0
#override DT = 400
MOM_OVERRIDE_EOF
truncate -s 0 $work/INPUT/COBALT_override
cat > $work/INPUT/COBALT_override << COBALT_OVERRIDE_EOF
! Put the contents of your COBALT_override file here.
! For parameters which are not specified in the COBALT_input file, just set the new value, ex:
! do_case2_mod = True
! For parameters which are specified in the COBALT_input file, specify an override, ex:
!#override do_case2_mod = True
COBALT_OVERRIDE_EOF
truncate -s 0 $work/INPUT/COBALT_input
cat > $work/INPUT/COBALT_input << COBALT_INPUT_EOF
! Put the contents of your COBALT_input file here
do_case2_mod = True
COBALT_INPUT_EOF
]]>
</csh>
</input>
Expand Down Expand Up @@ -661,7 +679,7 @@ MOM_OVERRIDE_EOF
cd $work
#Make a directory to trick FRE to pick up and archive in ascii
mkdir extra.results
mv MOM_parameter_doc* SIS_parameter_doc* seaice.stats* ocean.stats* extra.results/
mv MOM_parameter_doc* SIS_parameter_doc* COBALT_parameter_doc* seaice.stats* ocean.stats* extra.results/
cp diag_table extra.results/.
#When the ocean uses a mask_table the ocean_static.nc file produced by the model run has holes in coordinates (geolon,geolat)
#This causes problems for ferret and python tools for analysis.
Expand Down

0 comments on commit 8fb00cd

Please sign in to comment.