Skip to content

Commit

Permalink
Throw negative Jacobian error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrp089 committed Mar 3, 2024
1 parent 2ec754d commit e05e3f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Code/Source/svFSI/gr_equilibrated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ void stress_tangent_(const grModelType &grM, const double Fe[3][3],

// determinant of the deformation gradient
const double J = F.det();
if (J < 0.0)
throw std::runtime_error("[gr_equilibrated] Negative Jacobian");

// set example
enum Example { none, aneurysm, tortuosity, stenosis };
Expand Down

0 comments on commit e05e3f9

Please sign in to comment.