From 55ed6ec776f1af0e35e114aa383e7f989e2439a7 Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@Germany> Date: Thu, 24 Nov 2016 11:26:03 +0100 Subject: [PATCH] STYLE: use MUST_READ consistently for decomposeParDict - there was a slight mix of MUST_READ and MUST_READ_IF_MODIFIED but with no obvious code to handle runtime modified values of the decomposition, or how this works with alternative dictionaries. --- .../utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C | 2 +- .../utilities/parallelProcessing/decomposePar/decomposePar.C | 2 +- applications/utilities/preProcessing/mapFields/mapFields.C | 2 +- .../surface/surfaceRedistributePar/surfaceRedistributePar.C | 2 +- .../distributedTriSurfaceMesh/distributedTriSurfaceMesh.C | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C b/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C index 7b998241d65..a1e4a8d91da 100644 --- a/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C +++ b/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C @@ -916,7 +916,7 @@ int main(int argc, char *argv[]) "decomposeParDict", runTime.system(), mesh, - IOobject::MUST_READ_IF_MODIFIED, + IOobject::MUST_READ, IOobject::NO_WRITE ), decompDictFile diff --git a/applications/utilities/parallelProcessing/decomposePar/decomposePar.C b/applications/utilities/parallelProcessing/decomposePar/decomposePar.C index 4eea56f1c0f..48cfbac21f0 100644 --- a/applications/utilities/parallelProcessing/decomposePar/decomposePar.C +++ b/applications/utilities/parallelProcessing/decomposePar/decomposePar.C @@ -347,7 +347,7 @@ int main(int argc, char *argv[]) runTime.time().system(), regionDir, // use region if non-standard runTime, - IOobject::MUST_READ_IF_MODIFIED, + IOobject::MUST_READ, IOobject::NO_WRITE, false ), diff --git a/applications/utilities/preProcessing/mapFields/mapFields.C b/applications/utilities/preProcessing/mapFields/mapFields.C index 35d4faccc60..8e9f9535223 100644 --- a/applications/utilities/preProcessing/mapFields/mapFields.C +++ b/applications/utilities/preProcessing/mapFields/mapFields.C @@ -69,7 +69,7 @@ int readNumProcs dictName, runTime.system(), runTime, - IOobject::MUST_READ_IF_MODIFIED, + IOobject::MUST_READ, IOobject::NO_WRITE, false ), diff --git a/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C b/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C index d478f8ab407..fec1fa27a8d 100644 --- a/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C +++ b/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C @@ -170,7 +170,7 @@ int main(int argc, char *argv[]) "decomposeParDict", runTime.system(), runTime, - IOobject::MUST_READ_IF_MODIFIED, + IOobject::MUST_READ, IOobject::NO_WRITE ), decompDictFile diff --git a/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C b/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C index de5557bcb55..38cb229c7df 100644 --- a/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C +++ b/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C @@ -847,7 +847,7 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs "decomposeParDict", searchableSurface::time().system(), searchableSurface::time(), - IOobject::MUST_READ_IF_MODIFIED, + IOobject::MUST_READ, IOobject::NO_WRITE ) ) -- GitLab