Skip to content

Commit fba980b

Browse files
committed
Mask NormalVelocity in time stepper
We need to ensure that it is zero at active boundary edges.
1 parent 8d7b3b9 commit fba980b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

components/omega/src/timeStepping/TimeStepper.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,10 @@ void TimeStepper::updateVelocityByTend(OceanState *State1, int TimeLevel1,
501501
CoeffSeconds * NormalVelTend(IEdge, K);
502502
});
503503
});
504+
// Zero boundary layers; updateVelocityByTend only writes [KMin,KMax], so
505+
// layers outside that range retain fill values that would corrupt
506+
// tendencies.
507+
VCoord->applyEdgeLayerMask(NormalVel1, Mesh->NEdgesAll);
504508
}
505509

506510
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)