Skip to content

Commit

Permalink
added package condition in tendency tracers
Browse files Browse the repository at this point in the history
  • Loading branch information
irenavankova committed Jul 29, 2024
1 parent 9ddd011 commit 24f24b8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions components/mpas-ocean/src/shared/mpas_ocn_tendency.F
Original file line number Diff line number Diff line change
Expand Up @@ -830,13 +830,15 @@ subroutine ocn_tend_tracer(tendPool, statePool, forcingPool, &
modifiedGroupName, &
tracerGroupSurfaceFluxRunoff)

! Get surface flux due to subglacial runoff array
! only active tracers have subglacial runoff flux for now,
! but we still need to associate for ALL tracers
modifiedGroupName = groupName // "SurfaceFluxSubglacialRunoff"
call mpas_pool_get_array(tracersSurfaceFluxPool, &
modifiedGroupName, &
tracerGroupSurfaceFluxSubglacialRunoff)
if (trim(config_subglacial_runoff_mode) == 'data') then
! Get surface flux due to subglacial runoff array
! only active tracers have subglacial runoff flux for now,
! but we still need to associate for ALL tracers
modifiedGroupName = groupName // "SurfaceFluxSubglacialRunoff"
call mpas_pool_get_array(tracersSurfaceFluxPool, &
modifiedGroupName, &
tracerGroupSurfaceFluxSubglacialRunoff)
end if

! Get surface flux removed array to keep track of how much
! flux is ignored
Expand Down

0 comments on commit 24f24b8

Please sign in to comment.