STYLE: make polyMesh constructor explicit

- use polyMesh::defaultRegion instead of fvMesh::defaultRegion and
  others via static inheritance. (92 vs ~25 occurrences)
This commit is contained in:
Mark Olesen
2021-05-11 08:48:18 +02:00
parent 3bc8ab2839
commit 2a438385a3
23 changed files with 30 additions and 30 deletions

View File

@ -104,7 +104,7 @@ Foam::sampledSets::sampledSets
mesh_.time().globalPath()/functionObject::outputPrefix/name
);
if (mesh_.name() != fvMesh::defaultRegion)
if (mesh_.name() != polyMesh::defaultRegion)
{
outputPath_ = outputPath_/mesh_.name();
}
@ -137,7 +137,7 @@ Foam::sampledSets::sampledSets
mesh_.time().globalPath()/functionObject::outputPrefix/name
);
if (mesh_.name() != fvMesh::defaultRegion)
if (mesh_.name() != polyMesh::defaultRegion)
{
outputPath_ = outputPath_/mesh_.name();
}