ENH: minor simplifications for handling region meshes

- static version of polyMesh::meshDir(), which takes a region name

      polyMesh::meshDir(regionName)
  vs
      polyMesh::regionName(regionName)/polyMesh::meshSubDir

STYLE: use polyMesh::regionName(..) instead of comparing to defaultRegion

STYLE: use getOrDefault when retrieving various -region options

FIX: polyMesh::dbDir() now checks registry name, not full path (#3033)
This commit is contained in:
Mark Olesen
2023-11-22 15:28:49 +01:00
parent f377875bc8
commit ca25929372
49 changed files with 453 additions and 147 deletions

View File

@ -540,7 +540,7 @@ int main(int argc, char *argv[])
"boundary",
runTime.findInstance
(
polyMesh::regionName(regionName)/polyMesh::meshSubDir,
polyMesh::meshDir(regionName),
"boundary",
IOobject::READ_IF_PRESENT
),