ENH: IOobject::selectIO helper method

- centralizes IOobject handling and treatment of alternative locations.
  If an alternative file location is specified, it will be used instead.

- provide decompositionMethod::canonicalName instead of using
  "decomposeParDict" in various places.
This commit is contained in:
Mark Olesen
2018-08-02 17:39:17 +02:00
parent 0e996431b7
commit 88e5334a9f
24 changed files with 303 additions and 402 deletions

View File

@ -392,11 +392,11 @@ int main(int argc, char *argv[])
(
IOdictionary
(
decompositionModel::selectIO
IOobject::selectIO
(
IOobject
(
"decomposeParDict",
decompositionModel::canonicalName,
runTime.time().system(),
regionDir, // region (if non-default)
runTime,