Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions components/omega/src/ocn/TendencyTerms.h
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,10 @@ class TracerHorzAdvOnCell {
HProv(ICell, K) = LayerThickness(ICell, K);
for (I4 I = 0; I < NEdgesOnCell(ICell); ++I) {
const I4 IEdge = EdgesOnCell(ICell, I);
// Skip edges that are inactive at this layer, where the flux
// pseudo-thickness and transport velocity are never computed
if (K < MinLayerEdgeBot(IEdge) || K > MaxLayerEdgeTop(IEdge))
continue;
const Real SignedFactor =
InvAreaCell * DvEdge(IEdge) * EdgeSignOnCell(ICell, I);
// Provisional layer thickness is after horizontal
Expand Down
Loading