ENH: use consistent naming when toggling exception throwing on/off

This commit is contained in:
Mark Olesen
2021-11-01 13:37:11 +01:00
parent fddf8a8832
commit 851be8ea33
26 changed files with 119 additions and 111 deletions

View File

@ -46,7 +46,7 @@ if (doFiniteArea)
if (nAreaFields)
{
const bool throwing = FatalError.throwExceptions();
const bool oldThrowingError = FatalError.throwing(true);
try
{
faMeshPtr.reset(new faMesh(meshProxy.baseMesh()));
@ -55,7 +55,7 @@ if (doFiniteArea)
{
faMeshPtr.clear();
}
FatalError.throwExceptions(throwing);
FatalError.throwing(oldThrowingError);
}
if (faMeshPtr && nAreaFields)