Skip to content

Commit

Permalink
Changed wrappingLayerEpsilon in lsAdvect.
Browse files Browse the repository at this point in the history
  • Loading branch information
XaverKlemenschits committed Sep 30, 2020
1 parent 3001163 commit 6e2fda1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/lsAdvect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ template <class T, int D> class lsAdvect {
double advectedTime = 0.;
unsigned numberOfTimeSteps = 0;
bool saveAdvectionVelocities = false;
static constexpr double wrappingLayerEpsilon = 1e-4;

// SFINAE functions needed for StencilLocalLaxFriedrichs
template <
Expand Down Expand Up @@ -503,7 +504,7 @@ template <class T, int D> class lsAdvect {

// if the lower surface is actually outside, i.e. its LS value is
// lower or equal
if (iterators[lowerLevelSetId].getValue() <= value + 1e-9) {
if (iterators[lowerLevelSetId].getValue() <= value + wrappingLayerEpsilon) {
velocity =
scheme(it.getStartIndices(), velocities, lowerLevelSetId);
break;
Expand Down

0 comments on commit 6e2fda1

Please sign in to comment.