ENH: provide defaultName() static method for patches, zones

- consistent way of writing "patch" + Foam::name(id) etc.
This commit is contained in:
Mark Olesen
2020-01-16 13:24:23 +01:00
parent 2a98c4e665
commit f0be8679f6
24 changed files with 105 additions and 62 deletions

View File

@ -680,11 +680,11 @@ void Foam::boundaryMesh::readTriSurface(const fileName& fName)
patchi,
new boundaryPatch
(
"patch" + name(patchi),
geometricSurfacePatch::defaultName(patchi),
patchi,
0,
0,
"empty"
geometricSurfacePatch::emptyType
)
);
}