BUG: argList: parRunControl_ destruction order (since does Pstream::exit)

This commit is contained in:
mattijs
2013-06-13 14:13:10 +01:00
parent 846283d0c5
commit 180c59fbe2
2 changed files with 6 additions and 4 deletions

View File

@ -473,14 +473,14 @@ Foam::argList::argList
bool initialise
)
:
parRunControl_(args.parRunControl_),
args_(args.args_),
options_(options),
executable_(args.executable_),
rootPath_(args.rootPath_),
globalCase_(args.globalCase_),
case_(args.case_),
argListStr_(args.argListStr_),
parRunControl_(args.parRunControl_)
argListStr_(args.argListStr_)
{
parse(checkArgs, checkOpts, initialise);
}

View File

@ -105,6 +105,10 @@ class argList
// Private data
static bool bannerEnabled;
//- Switch on/off parallel mode. Has to be first to be constructed
// so destructor is done last.
ParRunControl parRunControl_;
stringList args_;
HashTable<string> options_;
@ -114,8 +118,6 @@ class argList
fileName case_;
string argListStr_;
ParRunControl parRunControl_;
// Signal handlers
sigFpe sigFpe_;
sigInt sigInt_;