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
@@ -1521,9 +1521,9 @@ void RT_FuentesPyramidElement::calcBasis(const int p,
Vector xy({x,y});
real_t mu;
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;
@@ -1782,10 +1782,10 @@ void RT_FuentesPyramidElement::calcDivBasis(const int p,
real_t mu;
bool limz1 = false;
if (std::fabs(1.0 - z) < 1e-8)
if (std::fabs(1.0 - z) < apex_tol)
{
limz1 = true;
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;