sampleSet: Improve error message for renamed sets

This commit is contained in:
Will Bainbridge
2018-06-20 16:37:27 +01:00
parent 3ef4c803cd
commit 135e6eb8b9
5 changed files with 53 additions and 11 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2016-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -163,12 +163,18 @@ int main(int argc, char *argv[])
// Externally stored dictionary for functionObjectList
// if not constructed from runTime
dictionary functionsDict;
dictionary functionsControlDict("controlDict");
// Construct functionObjectList
autoPtr<functionObjectList> functionsPtr
(
functionObjectList::New(args, runTime, functionsDict, selectedFields)
functionObjectList::New
(
args,
runTime,
functionsControlDict,
selectedFields
)
);
forAll(timeDirs, timei)
@ -184,7 +190,7 @@ int main(int argc, char *argv[])
(
args,
runTime,
functionsDict,
functionsControlDict,
selectedFields
);
}