Skip to content

Commit

Permalink
add geo_head to static diag file when available
Browse files Browse the repository at this point in the history
  • Loading branch information
alperaltuntas committed Jan 24, 2025
1 parent 01b77c7 commit eba2dc9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions param_templates/diag_table.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ FieldLists:

- &cfc_2d ["cfc11_flux", "cfc12_flux", "ice_fraction", "u10_sqr"]

- &geothermal ["Geo_heat"]

###############################################################################
# Section 2: File lists:
# List of files to be added in diag_table
Expand Down Expand Up @@ -230,6 +232,9 @@ Files:
module: "ocean_model" # native
packing: = 1 if $TEST else 2
lists: [ *static_flds ]
lists2:
$DO_GEOTHERMAL == "True":
[ *geothermal ]


# Sections ------------------------------------
Expand Down
12 changes: 11 additions & 1 deletion param_templates/json/diag_table.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@
"cfc12_flux",
"ice_fraction",
"u10_sqr"
],
[
"Geo_heat"
]
],
"Files": {
Expand Down Expand Up @@ -632,7 +635,14 @@
"C_P",
"Rho_0"
]
]
],
"lists2": {
"$DO_GEOTHERMAL == \"True\"": [
[
"Geo_heat"
]
]
}
}
},
"Agulhas": {
Expand Down

0 comments on commit eba2dc9

Please sign in to comment.