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

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2020 OpenCFD Ltd.
Copyright (C) 2020-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -362,8 +362,8 @@ int main(int argc, char *argv[])
autoPtr<Time> runTimePtr;
autoPtr<lumpedPointIOMovement> movementPtr;
const bool throwingIOError = FatalIOError.throwExceptions();
const bool throwingError = FatalError.throwExceptions();
const bool oldThrowingError = FatalError.throwing(true);
const bool oldThrowingIOerr = FatalIOError.throwing(true);
try
{
@ -380,8 +380,8 @@ int main(int argc, char *argv[])
}
Info<< nl << endl;
FatalError.throwExceptions(throwingError);
FatalIOError.throwExceptions(throwingIOError);
FatalError.throwing(oldThrowingError);
FatalIOError.throwing(oldThrowingIOerr);
if (!movementPtr)
{

View File

@ -408,8 +408,8 @@ int main(int argc, char *argv[])
autoPtr<Time> runTimePtr;
autoPtr<lumpedPointIOMovement> movementPtr;
const bool throwingIOError = FatalIOError.throwExceptions();
const bool throwingError = FatalError.throwExceptions();
const bool oldThrowingIO = FatalIOError.throwing(true);
const bool oldThrowingEx = FatalError.throwing(true);
try
{
@ -426,8 +426,8 @@ int main(int argc, char *argv[])
}
Info<< nl << endl;
FatalError.throwExceptions(throwingError);
FatalIOError.throwExceptions(throwingIOError);
FatalError.throwing(oldThrowingEx);
FatalIOError.throwing(oldThrowingIO);
if (!movementPtr)
{