mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
- Cleanup/centralize handling of -decomposeParDict by relocating common code into argList. Ensures that all processes receive identical information about the -decomposeParDict opton. - Only use alternative decomposeParDict for simpleFoam/motorBike tutorial so that this will be included in the test loop for snappy. - Added Mattijs' fix for surfaceRedistributePar.
29 lines
439 B
C
29 lines
439 B
C
fileName dictPath;
|
|
if (args.optionReadIfPresent("dict", dictPath))
|
|
{
|
|
if (isDir(dictPath))
|
|
{
|
|
dictPath = dictPath / dictName;
|
|
}
|
|
}
|
|
|
|
IOobject dictIO
|
|
(
|
|
dictName,
|
|
runTime.constant(),
|
|
mesh,
|
|
IOobject::MUST_READ_IF_MODIFIED,
|
|
IOobject::NO_WRITE
|
|
);
|
|
|
|
if (dictPath.size())
|
|
{
|
|
dictIO = IOobject
|
|
(
|
|
dictPath,
|
|
mesh,
|
|
IOobject::MUST_READ_IF_MODIFIED,
|
|
IOobject::NO_WRITE
|
|
);
|
|
}
|