From f9eb16db2afd4e4e1b2cc26b816b174496f30ad5 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 25 Jan 2019 01:09:45 +0100 Subject: [PATCH] STYLE: remove shadow variable name --- .../fvMeshFunctionObject/fvMeshFunctionObject.H | 7 ++----- .../utilities/ensightWrite/ensightWrite.C | 10 +++------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/finiteVolume/functionObjects/fvMeshFunctionObject/fvMeshFunctionObject.H b/src/finiteVolume/functionObjects/fvMeshFunctionObject/fvMeshFunctionObject.H index 92c16daab2..48e65f7921 100644 --- a/src/finiteVolume/functionObjects/fvMeshFunctionObject/fvMeshFunctionObject.H +++ b/src/finiteVolume/functionObjects/fvMeshFunctionObject/fvMeshFunctionObject.H @@ -64,18 +64,15 @@ class fvMeshFunctionObject : public regionFunctionObject { - protected: - // Protected member data + // Protected Member Data //- Reference to the fvMesh const fvMesh& mesh_; -private: - - // Private Member Functions + // Protected Member Functions //- No copy construct fvMeshFunctionObject(const fvMeshFunctionObject&) = delete; diff --git a/src/functionObjects/utilities/ensightWrite/ensightWrite.C b/src/functionObjects/utilities/ensightWrite/ensightWrite.C index 6840faf713..f51be7703f 100644 --- a/src/functionObjects/utilities/ensightWrite/ensightWrite.C +++ b/src/functionObjects/utilities/ensightWrite/ensightWrite.C @@ -165,8 +165,6 @@ bool Foam::functionObjects::ensightWrite::read(const dictionary& dict) outputDir_.clear(); dict.readIfPresent("directory", outputDir_); - const Time& time_ = obr_.time(); - if (outputDir_.size()) { // User-defined output directory @@ -195,23 +193,21 @@ bool Foam::functionObjects::ensightWrite::execute() bool Foam::functionObjects::ensightWrite::write() { - const Time& t = obr_.time(); - if (!ensCase_.valid()) { ensCase_.reset ( - new ensightCase(outputDir_, t.globalCaseName(), caseOpts_) + new ensightCase(outputDir_, time_.globalCaseName(), caseOpts_) ); } if (consecutive_) { - ensCase().nextTime(t.value()); + ensCase().nextTime(time_.value()); } else { - ensCase().setTime(t.value(), t.timeIndex()); + ensCase().setTime(time_.value(), time_.timeIndex()); }