From 8a70c898ae4973f380be3101a3809326cf4febcd Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 13 Jan 2023 12:44:16 +0100 Subject: [PATCH] STYLE: make IOobject time() noexcept. Use explicit REGISTER/NO_REGISTER --- src/OpenFOAM/db/IOobject/IOobject.C | 62 +++++++------------ src/OpenFOAM/db/IOobject/IOobject.H | 10 ++- src/OpenFOAM/db/Time/Time.C | 12 ++-- src/OpenFOAM/db/Time/TimeIO.C | 2 +- .../db/dynamicLibrary/codedBase/codedBase.C | 3 +- .../functionObjectList/functionObjectList.C | 10 ++- .../db/objectRegistry/objectRegistry.C | 13 ++-- .../exprResult/exprResultGlobals.C | 2 +- .../GeometricField/GeometricField.C | 2 +- .../fields/ReadFields/ReadFieldsTemplates.C | 14 +++-- .../uniformInterpolationTable.C | 3 +- src/OpenFOAM/meshes/polyMesh/polyMeshIO.C | 20 +++--- .../preservePatchTypes/preservePatchTypes.C | 2 +- .../ObukhovLength/ObukhovLength.C | 4 +- .../extrudePatchMesh/extrudePatchMesh.C | 2 +- src/finiteVolume/fvMesh/fvMeshGeometry.C | 14 ++--- .../field/derivedFields/derivedFields.C | 4 +- .../movement/lumpedPointIOMovement.C | 2 +- .../objectiveManager/objectiveManager.C | 2 +- .../optimisationManager/optimisationManager.C | 2 +- .../adjointSolverManager.C | 2 +- .../regionModel/regionModel/regionModel.C | 2 +- src/surfMesh/polySurface/polySurface.C | 4 +- .../polySurface/polySurfaceTemplates.C | 4 +- src/surfMesh/surfMesh/surfMeshTemplates.C | 4 +- 25 files changed, 101 insertions(+), 100 deletions(-) diff --git a/src/OpenFOAM/db/IOobject/IOobject.C b/src/OpenFOAM/db/IOobject/IOobject.C index e3e2913929..191fa68e6c 100644 --- a/src/OpenFOAM/db/IOobject/IOobject.C +++ b/src/OpenFOAM/db/IOobject/IOobject.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2016-2022 OpenCFD Ltd. + Copyright (C) 2016-2023 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -285,7 +285,7 @@ Foam::word Foam::IOobject::group(const word& name) if (i == std::string::npos || i == 0) { - return word::null; + return word(); } return name.substr(i+1); @@ -307,6 +307,16 @@ Foam::word Foam::IOobject::member(const word& name) // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // +Foam::IOobject::IOobject(const objectRegistry& registry, IOobjectOption ioOpt) +: + IOobjectOption(ioOpt), + objState_(objectState::GOOD), + sizeofLabel_(static_cast(sizeof(label))), + sizeofScalar_(static_cast(sizeof(scalar))), + db_(registry) +{} + + Foam::IOobject::IOobject ( const word& name, @@ -315,19 +325,11 @@ Foam::IOobject::IOobject IOobjectOption ioOpt ) : - IOobjectOption(ioOpt), - objState_(objectState::GOOD), - sizeofLabel_(static_cast(sizeof(label))), - sizeofScalar_(static_cast(sizeof(scalar))), - - name_(name), - headerClassName_(), - note_(), - instance_(instance), - local_(), - - db_(registry) + IOobject(registry, ioOpt) { + name_ = name; + instance_ = instance; + if (objectRegistry::debug) { InfoInFunction @@ -345,19 +347,12 @@ Foam::IOobject::IOobject IOobjectOption ioOpt ) : - IOobjectOption(ioOpt), - objState_(objectState::GOOD), - sizeofLabel_(static_cast(sizeof(label))), - sizeofScalar_(static_cast(sizeof(scalar))), - - name_(name), - headerClassName_(), - note_(), - instance_(instance), - local_(local), - - db_(registry) + IOobject(registry, ioOpt) { + name_ = name; + instance_ = instance; + local_ = local; + if (objectRegistry::debug) { InfoInFunction @@ -373,18 +368,7 @@ Foam::IOobject::IOobject IOobjectOption ioOpt ) : - IOobjectOption(ioOpt), - objState_(objectState::GOOD), - sizeofLabel_(static_cast(sizeof(label))), - sizeofScalar_(static_cast(sizeof(scalar))), - - name_(), - headerClassName_(), - note_(), - instance_(), - local_(), - - db_(registry) + IOobject(registry, ioOpt) { if (!fileNameComponents(path, instance_, local_, name_)) { @@ -451,7 +435,7 @@ const Foam::objectRegistry& Foam::IOobject::db() const noexcept } -const Foam::Time& Foam::IOobject::time() const +const Foam::Time& Foam::IOobject::time() const noexcept { return db_.time(); } diff --git a/src/OpenFOAM/db/IOobject/IOobject.H b/src/OpenFOAM/db/IOobject/IOobject.H index 7321543725..e8eb9a94ec 100644 --- a/src/OpenFOAM/db/IOobject/IOobject.H +++ b/src/OpenFOAM/db/IOobject/IOobject.H @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2016-2022 OpenCFD Ltd. + Copyright (C) 2016-2023 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -186,6 +186,12 @@ private: const objectRegistry& db_; + // Private Member Functions + + //- Construct from registry, io options. Without name, instance, local + IOobject(const objectRegistry& registry, IOobjectOption ioOpt); + + protected: // Protected Member Functions @@ -450,7 +456,7 @@ public: const objectRegistry& db() const noexcept; //- Return Time associated with the objectRegistry - const Time& time() const; + const Time& time() const noexcept; //- Return the object name inline const word& name() const noexcept; diff --git a/src/OpenFOAM/db/Time/Time.C b/src/OpenFOAM/db/Time/Time.C index 42143444dc..878413360b 100644 --- a/src/OpenFOAM/db/Time/Time.C +++ b/src/OpenFOAM/db/Time/Time.C @@ -279,7 +279,7 @@ void Foam::Time::setControls() *this, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ); @@ -440,7 +440,7 @@ Foam::Time::Time *this, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ), @@ -506,7 +506,7 @@ Foam::Time::Time *this, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ), @@ -589,7 +589,7 @@ Foam::Time::Time *this, IOobject::NO_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), dict ), @@ -666,7 +666,7 @@ Foam::Time::Time *this, IOobject::NO_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ), @@ -1006,7 +1006,7 @@ void Foam::Time::setTime(const instant& inst, const label newIndex) *this, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ); diff --git a/src/OpenFOAM/db/Time/TimeIO.C b/src/OpenFOAM/db/Time/TimeIO.C index a111245528..d41f0485f5 100644 --- a/src/OpenFOAM/db/Time/TimeIO.C +++ b/src/OpenFOAM/db/Time/TimeIO.C @@ -526,7 +526,7 @@ bool Foam::Time::writeTimeDict() const *this, IOobject::NO_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ); diff --git a/src/OpenFOAM/db/dynamicLibrary/codedBase/codedBase.C b/src/OpenFOAM/db/dynamicLibrary/codedBase/codedBase.C index fe5a286f01..bdf64d0597 100644 --- a/src/OpenFOAM/db/dynamicLibrary/codedBase/codedBase.C +++ b/src/OpenFOAM/db/dynamicLibrary/codedBase/codedBase.C @@ -115,7 +115,8 @@ Foam::codedBase::codeDict obr.time().system(), obr, IOobject::MUST_READ_IF_MODIFIED, - IOobject::NO_WRITE + IOobject::NO_WRITE, + IOobject::REGISTER ) ); diff --git a/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C b/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C index e68f82d985..fb44d80e37 100644 --- a/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C +++ b/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C @@ -113,7 +113,8 @@ void Foam::functionObjectList::createPropertiesDict() const "uniform"/word("functionObjects"), time_, IOobject::READ_IF_PRESENT, - IOobject::NO_WRITE + IOobject::NO_WRITE, + IOobject::REGISTER ) ) ); @@ -132,7 +133,8 @@ void Foam::functionObjectList::createOutputRegistry() const time_.timeName(), time_, IOobject::NO_READ, - IOobject::NO_WRITE + IOobject::NO_WRITE, + IOobject::REGISTER ) ) ); @@ -453,7 +455,9 @@ Foam::autoPtr Foam::functionObjectList::New ( args["dict"], runTime, - IOobject::MUST_READ_IF_MODIFIED + IOobject::MUST_READ_IF_MODIFIED, + IOobject::NO_WRITE, + IOobject::REGISTER ) ) ); diff --git a/src/OpenFOAM/db/objectRegistry/objectRegistry.C b/src/OpenFOAM/db/objectRegistry/objectRegistry.C index 4aeab33f6f..044d6c92c7 100644 --- a/src/OpenFOAM/db/objectRegistry/objectRegistry.C +++ b/src/OpenFOAM/db/objectRegistry/objectRegistry.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2015-2022 OpenCFD Ltd. + Copyright (C) 2015-2023 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -88,9 +88,9 @@ Foam::objectRegistry::objectRegistry(const Time& t, const label nObjects) word::validate(t.caseName()), t.path(), t, - IOobject::NO_READ, - IOobject::AUTO_WRITE, - false + IOobjectOption::NO_READ, + IOobjectOption::AUTO_WRITE, + IOobjectOption::NO_REGISTER ), true // to flag that this is the top-level regIOobject ), @@ -207,8 +207,9 @@ const Foam::objectRegistry& Foam::objectRegistry::subRegistry name, time().constant(), *this, - IOobject::NO_READ, - IOobject::NO_WRITE + IOobjectOption::NO_READ, + IOobjectOption::NO_WRITE, + IOobjectOption::REGISTER ) ); subObr->store(); diff --git a/src/OpenFOAM/expressions/exprResult/exprResultGlobals.C b/src/OpenFOAM/expressions/exprResult/exprResultGlobals.C index 4e6560f13b..9e3087599b 100644 --- a/src/OpenFOAM/expressions/exprResult/exprResultGlobals.C +++ b/src/OpenFOAM/expressions/exprResult/exprResultGlobals.C @@ -59,7 +59,7 @@ Foam::expressions::exprResultGlobals::exprResultGlobals obr.time(), IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE, - true // register + IOobject::REGISTER ) ), variables_(), diff --git a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C index 718f1af38d..14ab696745 100644 --- a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C +++ b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C @@ -85,7 +85,7 @@ void Foam::GeometricField::readFields() this->db(), IOobject::MUST_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), typeName ); diff --git a/src/OpenFOAM/fields/ReadFields/ReadFieldsTemplates.C b/src/OpenFOAM/fields/ReadFields/ReadFieldsTemplates.C index 18697919d1..6dce0d360f 100644 --- a/src/OpenFOAM/fields/ReadFields/ReadFieldsTemplates.C +++ b/src/OpenFOAM/fields/ReadFields/ReadFieldsTemplates.C @@ -236,7 +236,8 @@ void Foam::ReadFields timeName, fieldsCache, IOobject::NO_READ, - IOobject::NO_WRITE + IOobject::NO_WRITE, + IOobject::REGISTER ) ); timeCachePtr->store(); @@ -261,7 +262,7 @@ void Foam::ReadFields mesh.thisDb(), IOobject::MUST_READ, IOobject::NO_WRITE, - false // do not register + IOobject::NO_REGISTER ), mesh ); @@ -275,7 +276,8 @@ void Foam::ReadFields timeName, timeCache, IOobject::NO_READ, - IOobject::NO_WRITE + IOobject::NO_WRITE, + IOobject::REGISTER ), loadedFld ); @@ -347,7 +349,8 @@ void Foam::readFields io.local(), io.db(), IOobject::MUST_READ, - IOobject::NO_WRITE + IOobject::NO_WRITE, + IOobject::REGISTER ), mesh ); @@ -402,7 +405,8 @@ void Foam::readUniformFields io.local(), io.db(), IOobject::MUST_READ, - IOobject::NO_WRITE + IOobject::NO_WRITE, + IOobject::REGISTER ) ); fieldPtr->store(); diff --git a/src/OpenFOAM/interpolations/uniformInterpolationTable/uniformInterpolationTable.C b/src/OpenFOAM/interpolations/uniformInterpolationTable/uniformInterpolationTable.C index bb2fad90a6..24cae2e413 100644 --- a/src/OpenFOAM/interpolations/uniformInterpolationTable/uniformInterpolationTable.C +++ b/src/OpenFOAM/interpolations/uniformInterpolationTable/uniformInterpolationTable.C @@ -94,7 +94,8 @@ Foam::uniformInterpolationTable::uniformInterpolationTable db, IOobject::NO_READ, IOobject::NO_WRITE, - false // if used in BCs, could be used by multiple patches + IOobject::NO_REGISTER + // No register: could be used by multiple patches if used in BCs ), List(2, Zero), x0_(dict.get("x0")), diff --git a/src/OpenFOAM/meshes/polyMesh/polyMeshIO.C b/src/OpenFOAM/meshes/polyMesh/polyMeshIO.C index fc6df40fc2..914d11d736 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMeshIO.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMeshIO.C @@ -114,7 +114,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() *this, IOobject::MUST_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ); @@ -128,7 +128,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() *this, IOobject::MUST_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ); @@ -142,7 +142,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() *this, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ); @@ -156,7 +156,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() *this, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ); @@ -171,7 +171,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() *this, IOobject::MUST_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), *this ); @@ -256,7 +256,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() *this, IOobject::MUST_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ); @@ -291,7 +291,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() *this, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), *this ); @@ -328,7 +328,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() *this, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), *this ); @@ -369,7 +369,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() *this, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), *this ); @@ -426,7 +426,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() *this, IOobject::MUST_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ) ); diff --git a/src/OpenFOAM/meshes/preservePatchTypes/preservePatchTypes.C b/src/OpenFOAM/meshes/preservePatchTypes/preservePatchTypes.C index 67db89472c..7cd2b3a40a 100644 --- a/src/OpenFOAM/meshes/preservePatchTypes/preservePatchTypes.C +++ b/src/OpenFOAM/meshes/preservePatchTypes/preservePatchTypes.C @@ -56,7 +56,7 @@ void Foam::preservePatchTypes obr, IOobject::MUST_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ); if (patchEntriesHeader.typeHeaderOk(true)) diff --git a/src/atmosphericModels/functionObjects/ObukhovLength/ObukhovLength.C b/src/atmosphericModels/functionObjects/ObukhovLength/ObukhovLength.C index 247e787620..4ce789050a 100644 --- a/src/atmosphericModels/functionObjects/ObukhovLength/ObukhovLength.C +++ b/src/atmosphericModels/functionObjects/ObukhovLength/ObukhovLength.C @@ -72,7 +72,7 @@ bool Foam::functionObjects::ObukhovLength::calcOL() mesh_, IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ), mesh_, dimLength, @@ -90,7 +90,7 @@ bool Foam::functionObjects::ObukhovLength::calcOL() mesh_, IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ), mesh_, dimVelocity, diff --git a/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.C b/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.C index 58b5657bd1..6ce607ba98 100644 --- a/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.C +++ b/src/dynamicMesh/extrudePatchMesh/extrudePatchMesh.C @@ -61,7 +61,7 @@ Foam::extrudePatchMesh::extrudePatchMesh mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, - true + IOobject::REGISTER ), Zero, false diff --git a/src/finiteVolume/fvMesh/fvMeshGeometry.C b/src/finiteVolume/fvMesh/fvMeshGeometry.C index 853ce036e3..132d09f651 100644 --- a/src/finiteVolume/fvMesh/fvMeshGeometry.C +++ b/src/finiteVolume/fvMesh/fvMeshGeometry.C @@ -61,7 +61,7 @@ void Foam::fvMesh::makeSf() const *this, IOobject::NO_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), *this, dimArea, @@ -98,7 +98,7 @@ void Foam::fvMesh::makeMagSf() const *this, IOobject::NO_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), mag(Sf()) + dimensionedScalar("vs", dimArea, VSMALL) ); @@ -130,7 +130,7 @@ void Foam::fvMesh::makeC() const *this, IOobject::NO_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), *this, dimLength, @@ -165,7 +165,7 @@ void Foam::fvMesh::makeCf() const *this, IOobject::NO_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), *this, dimLength, @@ -192,7 +192,7 @@ const Foam::volScalarField::Internal& Foam::fvMesh::V() const *this, IOobject::NO_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), *this, dimVolume, @@ -245,7 +245,7 @@ const Foam::volScalarField::Internal& Foam::fvMesh::V00() const *this, IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ), V0() ); @@ -364,7 +364,7 @@ Foam::tmp Foam::fvMesh::delta() const *this, IOobject::NO_READ, IOobject::NO_WRITE, - false + IOobject::NO_REGISTER ), *this, dimLength diff --git a/src/functionObjects/field/derivedFields/derivedFields.C b/src/functionObjects/field/derivedFields/derivedFields.C index 9092b16e13..405442e8d8 100644 --- a/src/functionObjects/field/derivedFields/derivedFields.C +++ b/src/functionObjects/field/derivedFields/derivedFields.C @@ -88,7 +88,7 @@ static bool calc_rhoU mesh, IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ), mesh, (dimDensity * dimVelocity) @@ -142,7 +142,7 @@ static bool calc_pTotal mesh, IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ), mesh, dimPressure diff --git a/src/lumpedPointMotion/movement/lumpedPointIOMovement.C b/src/lumpedPointMotion/movement/lumpedPointIOMovement.C index 4ab2ec39c6..9d2163cb56 100644 --- a/src/lumpedPointMotion/movement/lumpedPointIOMovement.C +++ b/src/lumpedPointMotion/movement/lumpedPointIOMovement.C @@ -64,7 +64,7 @@ Foam::lumpedPointIOMovement::New obr, IOobject::MUST_READ, IOobject::NO_WRITE, - true // register object + IOobject::REGISTER ), ownerId // tag this patch as owner too ); diff --git a/src/optimisation/adjointOptimisation/adjoint/objectiveManager/objectiveManager/objectiveManager.C b/src/optimisation/adjointOptimisation/adjoint/objectiveManager/objectiveManager/objectiveManager.C index c84fa257b0..75354d66c0 100644 --- a/src/optimisation/adjointOptimisation/adjoint/objectiveManager/objectiveManager/objectiveManager.C +++ b/src/optimisation/adjointOptimisation/adjoint/objectiveManager/objectiveManager/objectiveManager.C @@ -59,7 +59,7 @@ objectiveManager::objectiveManager mesh, IOobject::NO_READ, IOobject::NO_WRITE, - true //register object + IOobject::REGISTER ) ), mesh_(mesh), diff --git a/src/optimisation/adjointOptimisation/adjoint/optimisation/optimisationManager/optimisationManager/optimisationManager.C b/src/optimisation/adjointOptimisation/adjoint/optimisation/optimisationManager/optimisationManager/optimisationManager.C index bfcf84083e..a4b111fffd 100644 --- a/src/optimisation/adjointOptimisation/adjoint/optimisation/optimisationManager/optimisationManager/optimisationManager.C +++ b/src/optimisation/adjointOptimisation/adjoint/optimisation/optimisationManager/optimisationManager/optimisationManager.C @@ -51,7 +51,7 @@ Foam::optimisationManager::optimisationManager(fvMesh& mesh) mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE, - true + IOobject::REGISTER ) ), mesh_(mesh), diff --git a/src/optimisation/adjointOptimisation/adjoint/solvers/adjointSolverManager/adjointSolverManager.C b/src/optimisation/adjointOptimisation/adjoint/solvers/adjointSolverManager/adjointSolverManager.C index 0323238094..cbe65c281a 100644 --- a/src/optimisation/adjointOptimisation/adjoint/solvers/adjointSolverManager/adjointSolverManager.C +++ b/src/optimisation/adjointOptimisation/adjoint/solvers/adjointSolverManager/adjointSolverManager.C @@ -56,7 +56,7 @@ Foam::adjointSolverManager::adjointSolverManager mesh, IOobject::NO_READ, IOobject::NO_WRITE, - true //register object + IOobject::REGISTER ) ), mesh_(mesh), diff --git a/src/regionModels/regionModel/regionModel/regionModel.C b/src/regionModels/regionModel/regionModel/regionModel.C index be3b36b03c..d0d6f58ab7 100644 --- a/src/regionModels/regionModel/regionModel/regionModel.C +++ b/src/regionModels/regionModel/regionModel/regionModel.C @@ -433,7 +433,7 @@ Foam::regionModels::regionModel::regionModel mesh.time(), IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ), dict ), diff --git a/src/surfMesh/polySurface/polySurface.C b/src/surfMesh/polySurface/polySurface.C index 2adf49d0b3..1b12eb90a2 100644 --- a/src/surfMesh/polySurface/polySurface.C +++ b/src/surfMesh/polySurface/polySurface.C @@ -93,7 +93,7 @@ Foam::polySurface::polySurface(const IOobject& io, bool doCheckIn) io.db(), IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ) ), MeshReference(faceList(), pointField()), @@ -124,7 +124,7 @@ Foam::polySurface::polySurface obr, IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ), doCheckIn ) diff --git a/src/surfMesh/polySurface/polySurfaceTemplates.C b/src/surfMesh/polySurface/polySurfaceTemplates.C index ba57c6660f..e78f06f5e6 100644 --- a/src/surfMesh/polySurface/polySurfaceTemplates.C +++ b/src/surfMesh/polySurface/polySurfaceTemplates.C @@ -119,7 +119,7 @@ void Foam::polySurface::storeField fieldDb, IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ), *this, dims, @@ -160,7 +160,7 @@ void Foam::polySurface::storeField fieldDb, IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ), *this, dims, diff --git a/src/surfMesh/surfMesh/surfMeshTemplates.C b/src/surfMesh/surfMesh/surfMeshTemplates.C index e777844f6d..3f746d17d5 100644 --- a/src/surfMesh/surfMesh/surfMeshTemplates.C +++ b/src/surfMesh/surfMesh/surfMeshTemplates.C @@ -58,7 +58,7 @@ void Foam::surfMesh::storeField fieldDb, IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ), *this, dims, @@ -98,7 +98,7 @@ void Foam::surfMesh::storeField fieldDb, IOobject::NO_READ, IOobject::NO_WRITE, - true + IOobject::REGISTER ), *this, dims,