-
Notifications
You must be signed in to change notification settings - Fork 363
Open
Description
I think that high_order_vert_flux
should be allocated to size nVertLevels+1
here so that in the following lines, high_order_vert_flux(k+1)
has a reference when maxLevelCell = nVertLevels
. @mattdturner Do you agree?
MPAS-Model/src/core_ocean/shared/mpas_ocn_tracer_advection_std.F
Lines 222 to 225 in 29a819a
do k = 1,maxLevelCell(iCell) | |
tend(iTracer, k, iCell) = tend(iTracer, k, iCell) + verticalDivergenceFactor(k) * (high_order_vert_flux(k+1, iCell) & | |
- high_order_vert_flux(k, iCell)) | |
end do ! k loop |