Skip to content

Possible bug in ocn_tracer_advection_std #841

@cbegeman

Description

@cbegeman

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?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions