Closed mnlevy1981 closed 1 year ago
It turns out that MOM6 needs access to totalChl
before we call interior_tendency_compute()
for in the time stepping loop, and that causes issues with the first time step... so I've created the marbl_output_for_GCM_type
but we don't need interior_tendency_output
at this time. Instead, we need a function (get_output_for_GCM()
?) that can compute totalChl
from the tracers; the first time MOM6 will call this function will be after reading initial conditions, so it will have a reasonable totalChl
even if interior_tendency_compute()
hasn't been called yet.
fixed by #419
MOM6 wants the full 3D chlorophyll field instead of just surface chlorophyll when computing absorption. In talking with @klindsay28, we think the best plan forward would be to
marbl_surface_flux_output_type
->marbl_output_for_GCM_type
(also renamesfo_cnt
->output_count
and addnum_levels
; may also need to splitnum_elements
->num_elements_surface_flux
and introducenum_elements_interior_tendency
)marbl_single_sfo_type
->marbl_single_output_type
(also renameforcing_field
->forcing_field_0d
and introduceforcing_field_1d
; though that adds more work to the resolution of #190 )interior_tendency
equivalents of the currentsurface_flux_output
variables (and indices); haveinterior_tendency_compute()
add chlorophyll in the correct spotmarbl_surface_flux_output_indexing_type
, renametotalChl_id
tosurf_totalChl_id
(and we'll usetotalChl_id
in the interior tendency equivalent)I think renaming
forcing_field
->forcing_field_0d
andtotalChl_id
->surf_totalChl_id
will require updates on the GCM side of things. I don't plan on updating POP to use this tag, but am happy to do so if it would be beneficial (POP would continue to use the surface chlorophyll, and I doubt we will be supporting POP long enough for a future PR to introduce a feature that is needed in that model). @maltrud and @mark-petersen this could have implications in E3SM / MPAS-O as well, so I want to make sure you're aware of this issue ticket.