Replacing scattered tolerances with a centrally defined one

This commit is contained in:
Mark L. Stowell
2024-11-08 10:16:25 -08:00
parent 2927be94bf
commit 7b12197e94
4 changed files with 15 additions and 12 deletions
+4 -4
View File
@@ -1904,9 +1904,9 @@ void ND_FuentesPyramidElement::calcBasis(const int p,
Vector xy({x,y}), dmu(3);
real_t mu, mu2;
if (std::fabs(1.0 - z) < 1e-8)
if (std::fabs(1.0 - z) < apex_tol)
{
z = 1.0 - 1e-8;
z = 1.0 - apex_tol;
y = 0.5 * (1.0 - z);
x = 0.5 * (1.0 - z);
xy(0) = x; xy(1) = y;
@@ -2170,9 +2170,9 @@ void ND_FuentesPyramidElement::calcCurlBasis(const int p,
real_t mu, mu2;
if (std::fabs(1.0 - z) < 1e-8)
if (std::fabs(1.0 - z) < apex_tol)
{
z = 1.0 - 1e-8;
z = 1.0 - apex_tol;
y = 0.5 * (1.0 - z);
x = 0.5 * (1.0 - z);
xy(0) = x; xy(1) = y;