Skip to content

Commit 0306e5a

Browse files
committed
epsilon
1 parent 4203364 commit 0306e5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

applications/MeshMovingApplication/custom_elements/structural_meshmoving_element.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ StructuralMeshMovingElement::SetAndModifyConstitutiveLaw(
104104

105105
MoveMeshUtilities::CheckJacobianDimension(invJ0, detJ0, rgeom);
106106

107-
if (detJ0[PointNumber] < 0.0) {
107+
if (detJ0[PointNumber] < std::numeric_limits<double>::epsilon()) {
108108
KRATOS_ERROR << "Invalid negative Jacobian determinant detected!, Element ID: " << this->Id()
109109
<< "\n Element is inverted. Check mesh quality, node ordering, or surface normals." << std::endl;
110110
}

0 commit comments

Comments
 (0)