diff --git a/applications/utilities/mesh/manipulation/singleCellMesh/singleCellMesh.C b/applications/utilities/mesh/manipulation/singleCellMesh/singleCellMesh.C index 0fe1ac690c..4cfd129645 100644 --- a/applications/utilities/mesh/manipulation/singleCellMesh/singleCellMesh.C +++ b/applications/utilities/mesh/manipulation/singleCellMesh/singleCellMesh.C @@ -121,7 +121,7 @@ int main(int argc, char *argv[]) // Check for new mesh - if (mesh.readUpdate() != polyMesh::UNCHANGED) + if (mesh.readUpdate() != fvMesh::UNCHANGED) { Info<< "Detected changed mesh. Recreating singleCell mesh." << endl; scMesh.clear(); // remove any registered objects diff --git a/applications/utilities/postProcessing/graphics/PVReaders/vtkPVFoam/vtkPVFoam.C b/applications/utilities/postProcessing/graphics/PVReaders/vtkPVFoam/vtkPVFoam.C index 6c7f8167b6..0c0e2e1a3f 100644 --- a/applications/utilities/postProcessing/graphics/PVReaders/vtkPVFoam/vtkPVFoam.C +++ b/applications/utilities/postProcessing/graphics/PVReaders/vtkPVFoam/vtkPVFoam.C @@ -147,7 +147,7 @@ int Foam::vtkPVFoam::setTime(int nRequest, const double requestTimes[]) if ( meshPtr_->readUpdate(fvMesh::stitchType::nonGeometric) - != polyMesh::UNCHANGED + != fvMesh::UNCHANGED ) { meshChanged_ = true; diff --git a/src/finiteVolume/fvMesh/fvMesh.C b/src/finiteVolume/fvMesh/fvMesh.C index c7a071b0c0..9a6eed5e6b 100644 --- a/src/finiteVolume/fvMesh/fvMesh.C +++ b/src/finiteVolume/fvMesh/fvMesh.C @@ -806,16 +806,15 @@ Foam::fvMesh::readUpdateState Foam::fvMesh::readUpdate } // Return the corresponding fvMesh read update state - switch(state) + switch (state) { case polyMesh::UNCHANGED: return UNCHANGED; case polyMesh::POINTS_MOVED: return stitcher_.valid() - && stitcher_->stitches() && stitch != stitchType::none - && state != polyMesh::UNCHANGED + && stitcher_->stitches() ? STITCHED : POINTS_MOVED; case polyMesh::TOPO_CHANGE: @@ -823,6 +822,8 @@ Foam::fvMesh::readUpdateState Foam::fvMesh::readUpdate case polyMesh::TOPO_PATCH_CHANGE: return TOPO_PATCH_CHANGE; } + + return UNCHANGED; }