Skip to content

Commit

Permalink
fix: Move function call outside of debug assert
Browse files Browse the repository at this point in the history
- Move std::eigen call outside of PCU_DEBUG_ASSERT so that it is called
  in Release mode.

Signed-off-by: Aiden Woodruff <[email protected]>
  • Loading branch information
bobpaw committed Sep 25, 2024
1 parent 3e6ecac commit ed78339
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apf_cap/apfCAP.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,8 @@ bool smoothCAPAnisoSizes(apf::Mesh2* mesh, std::string analysis,
apf::Matrix3x3 t(m[0], m[1], m[2],
m[1], m[3], m[4],
m[2], m[4], m[5]);
PCU_DEBUG_ASSERT(apf::eigen(t, &Q[0], &H[0]) == 3);
int n = apf::eigen(t, &Q[0], &H[0]);
PCU_DEBUG_ASSERT(n == 3);
apf::setMatrix(frames, e, 0, Q);
apf::setVector(scales, e, 0, H);
}
Expand Down

0 comments on commit ed78339

Please sign in to comment.