ENH: extrudeMesh: -dict. See #1253

This commit is contained in:
mattijs
2019-03-27 10:39:35 +00:00
committed by Andrew Heather
parent 1561a46927
commit f513f8bec6

View File

@ -217,6 +217,7 @@ int main(int argc, char *argv[])
);
#include "addRegionOption.H"
argList::addOption("dict", "file", "Use alternative extrudeMeshDict");
#include "setRootCase.H"
#include "createTimeExtruded.H"
@ -236,15 +237,19 @@ int main(int argc, char *argv[])
<< runTimeExtruded.timeName() << nl << endl;
}
IOdictionary dict
const IOdictionary dict
(
IOobject
IOobject::selectIO
(
"extrudeMeshDict",
runTimeExtruded.system(),
runTimeExtruded,
IOobject::MUST_READ_IF_MODIFIED
IOobject
(
"extrudeMeshDict",
runTimeExtruded.system(),
runTimeExtruded,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
),
args.opt<fileName>("dict", "")
)
);