Skip to content

Commit

Permalink
Add ice-ocean stresses to config output outputs
Browse files Browse the repository at this point in the history
Just register taux and tauy in the ModelArrayRef system and add a
sensible name in ProtectedArrayNames.ipp.
  • Loading branch information
einola committed Dec 5, 2024
1 parent ae43862 commit 62c9395
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/modules/include/IDynamics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class IDynamics : public ModelComponent {
, m_usesDamage(usesDamageIn)
{
getStore().registerArray(Shared::DAMAGE, &damage, RW);
getStore().registerArray(Protected::IO_STRESS_U, &taux, RO);
getStore().registerArray(Protected::IO_STRESS_V, &tauy, RO);
}
virtual ~IDynamics() = default;

Expand Down
2 changes: 2 additions & 0 deletions core/src/modules/include/ProtectedArrayNames.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@
{ "sss_slab", "SLAB_SSS" }, // Slab ocean surface salinity PSU
{ "qdw", "SLAB_QDW" }, // Slab ocean temperature nudging heat flux, W m⁻²
{ "fdw", "SLAB_FDW" }, // Slab ocean salinity nudging water flux, kg s⁻¹ m⁻²
{ "taux", "IO_STRESS_U" }, // Ice-ocean stress x(east) direction, Pa
{ "tauy", "IO_STRESS_V" }, // Ice-ocean stress x(east) direction, Pa

0 comments on commit 62c9395

Please sign in to comment.