mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
34 lines
629 B
C
34 lines
629 B
C
//
|
|
// setSystemMeshDictionaryIO.H
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
fileName dictPath = "";
|
|
if (args.optionFound("dict"))
|
|
{
|
|
dictPath = args["dict"];
|
|
if (isDir(dictPath))
|
|
{
|
|
dictPath = dictPath / dictName;
|
|
}
|
|
}
|
|
|
|
IOobject dictIO
|
|
(
|
|
dictName,
|
|
runTime.system(),
|
|
mesh,
|
|
IOobject::MUST_READ_IF_MODIFIED,
|
|
IOobject::NO_WRITE
|
|
);
|
|
|
|
if (dictPath.size())
|
|
{
|
|
dictIO = IOobject
|
|
(
|
|
dictPath,
|
|
mesh,
|
|
IOobject::MUST_READ_IF_MODIFIED,
|
|
IOobject::NO_WRITE
|
|
);
|
|
}
|