Commit d4d6db60 authored by Nabil Chouika's avatar Nabil Chouika
Browse files

refs#16

In NumA++:
- Correct the warning in DExp.
parent 03989c58
......@@ -3240,15 +3240,15 @@ double DExpIntegrator1D::integrate(FunctionType1D* pFunction, double a,
}
}
m_numFunctionEvaluations = 2 * i - 1;
m_errorEstimate *= c;
m_errors.setAbsolute(m_errorEstimate);
if (m_errorEstimate > targetAbsoluteError) {
if (m_errorEstimate > 0.1 * targetAbsoluteError) {
ElemUtils::LoggerManager::getInstance()->warn("DExpIntegrator1D",
__func__, "Cannot reach tolerances !");
}
m_numFunctionEvaluations = 2 * i - 1;
m_errorEstimate *= c;
m_errors.setAbsolute(m_errorEstimate);
return c * integral;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment