engineTime: Added support for -case

Resolves bug-report http://bugs.openfoam.org/view.php?id=3690
This commit is contained in:
Henry Weller
2021-06-29 17:42:39 +01:00
parent 10a6e7a46b
commit fbfbe79bcd
3 changed files with 6 additions and 3 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -103,6 +103,7 @@ public:
(
const word& name,
const fileName& rootPath,
const fileName& globalCaseName,
const fileName& caseName,
const fileName& systemName = "system",
const fileName& constantName = "constant",

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -32,13 +32,14 @@ Foam::autoPtr<Foam::engineTime> Foam::engineTime::New
(
const word& name,
const fileName& rootPath,
const fileName& globalCaseName,
const fileName& caseName,
const fileName& systemName,
const fileName& constantName,
const fileName& dictName
)
{
IFstream engineDictFile("."/constantName/dictName);
IFstream engineDictFile(rootPath/globalCaseName/constantName/dictName);
dictionary engineDict(engineDictFile);

View File

@ -6,6 +6,7 @@ autoPtr<engineTime> runTimePtr
(
Time::controlDictName,
args.rootPath(),
args.globalCaseName(),
args.caseName()
)
);