mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Foam abort - reading from env(FOAM_ABORT) instead of caching value on construction
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -174,7 +174,7 @@ void Foam::IOerror::exit(const int)
|
||||
jobInfo.exit();
|
||||
}
|
||||
|
||||
if (abort_)
|
||||
if (env("FOAM_ABORT"))
|
||||
{
|
||||
abort();
|
||||
}
|
||||
@ -215,7 +215,7 @@ void Foam::IOerror::abort()
|
||||
jobInfo.abort();
|
||||
}
|
||||
|
||||
if (abort_)
|
||||
if (env("FOAM_ABORT"))
|
||||
{
|
||||
Perr<< endl << *this << endl
|
||||
<< "\nFOAM aborting (FOAM_ABORT set)\n" << endl;
|
||||
|
||||
Reference in New Issue
Block a user