diff --git a/applications/utilities/mesh/manipulation/setSet/setSet.C b/applications/utilities/mesh/manipulation/setSet/setSet.C index 2f5b6a5cca..df20caa2ff 100644 --- a/applications/utilities/mesh/manipulation/setSet/setSet.C +++ b/applications/utilities/mesh/manipulation/setSet/setSet.C @@ -85,7 +85,7 @@ void writeVTK vtk::writeFaceSet ( mesh, - currentSet, + dynamicCast(currentSet), mesh.time().path()/vtkBaseName, vtk::formatType::LEGACY_BINARY ); @@ -96,7 +96,7 @@ void writeVTK vtk::writeCellSetFaces ( mesh, - currentSet, + dynamicCast(currentSet), mesh.time().path()/vtkBaseName, vtk::formatType::LEGACY_BINARY ); @@ -106,7 +106,7 @@ void writeVTK vtk::writePointSet ( mesh, - currentSet, + dynamicCast(currentSet), mesh.time().path()/vtkBaseName, vtk::formatType::LEGACY_BINARY ); diff --git a/src/meshTools/output/foamVtkWriteFaceSet.H b/src/meshTools/output/foamVtkWriteFaceSet.H index 24ba0c3932..2469b45f3d 100644 --- a/src/meshTools/output/foamVtkWriteFaceSet.H +++ b/src/meshTools/output/foamVtkWriteFaceSet.H @@ -26,7 +26,7 @@ InNamespace Description Write faceSet to vtk polydata file. - The data are the original point ids. + The data are the mesh face ids. SourceFiles foamVtkWritePointSet.C @@ -49,7 +49,7 @@ class fileName; namespace vtk { -//- Write pointSet to vtk polydata file. +//- Write faceSet to vtk polydata file. // Only one data which is original pointID. void writeFaceSet ( diff --git a/src/meshTools/sets/topoSets/cellSet.H b/src/meshTools/sets/topoSets/cellSet.H index 260695f6ad..da1dc407d2 100644 --- a/src/meshTools/sets/topoSets/cellSet.H +++ b/src/meshTools/sets/topoSets/cellSet.H @@ -65,7 +65,7 @@ public: // Constructors //- Construct from IOobject. No checking. - cellSet(const IOobject& obj); + explicit cellSet(const IOobject& obj); //- Construct from polyMesh and name. Checks for valid cell ids. cellSet diff --git a/src/meshTools/sets/topoSets/faceSet.H b/src/meshTools/sets/topoSets/faceSet.H index 18787ca5de..7653db1620 100644 --- a/src/meshTools/sets/topoSets/faceSet.H +++ b/src/meshTools/sets/topoSets/faceSet.H @@ -59,9 +59,8 @@ public: // Constructors - //- Construct from IOobject - faceSet(const IOobject& obj); + explicit faceSet(const IOobject& obj); //- Construct from objectRegistry and name faceSet diff --git a/src/meshTools/sets/topoSets/pointSet.H b/src/meshTools/sets/topoSets/pointSet.H index c31f86e688..4f4025adc8 100644 --- a/src/meshTools/sets/topoSets/pointSet.H +++ b/src/meshTools/sets/topoSets/pointSet.H @@ -60,9 +60,8 @@ public: // Constructors - //- Construct from IOobject - pointSet(const IOobject& obj); + explicit pointSet(const IOobject& obj); //- Construct from objectRegistry and name pointSet