mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: remove shadow variable name
This commit is contained in:
@ -64,18 +64,15 @@ class fvMeshFunctionObject
|
|||||||
:
|
:
|
||||||
public regionFunctionObject
|
public regionFunctionObject
|
||||||
{
|
{
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Protected member data
|
// Protected Member Data
|
||||||
|
|
||||||
//- Reference to the fvMesh
|
//- Reference to the fvMesh
|
||||||
const fvMesh& mesh_;
|
const fvMesh& mesh_;
|
||||||
|
|
||||||
|
|
||||||
private:
|
// Protected Member Functions
|
||||||
|
|
||||||
// Private Member Functions
|
|
||||||
|
|
||||||
//- No copy construct
|
//- No copy construct
|
||||||
fvMeshFunctionObject(const fvMeshFunctionObject&) = delete;
|
fvMeshFunctionObject(const fvMeshFunctionObject&) = delete;
|
||||||
|
|||||||
@ -165,8 +165,6 @@ bool Foam::functionObjects::ensightWrite::read(const dictionary& dict)
|
|||||||
outputDir_.clear();
|
outputDir_.clear();
|
||||||
dict.readIfPresent("directory", outputDir_);
|
dict.readIfPresent("directory", outputDir_);
|
||||||
|
|
||||||
const Time& time_ = obr_.time();
|
|
||||||
|
|
||||||
if (outputDir_.size())
|
if (outputDir_.size())
|
||||||
{
|
{
|
||||||
// User-defined output directory
|
// User-defined output directory
|
||||||
@ -195,23 +193,21 @@ bool Foam::functionObjects::ensightWrite::execute()
|
|||||||
|
|
||||||
bool Foam::functionObjects::ensightWrite::write()
|
bool Foam::functionObjects::ensightWrite::write()
|
||||||
{
|
{
|
||||||
const Time& t = obr_.time();
|
|
||||||
|
|
||||||
if (!ensCase_.valid())
|
if (!ensCase_.valid())
|
||||||
{
|
{
|
||||||
ensCase_.reset
|
ensCase_.reset
|
||||||
(
|
(
|
||||||
new ensightCase(outputDir_, t.globalCaseName(), caseOpts_)
|
new ensightCase(outputDir_, time_.globalCaseName(), caseOpts_)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (consecutive_)
|
if (consecutive_)
|
||||||
{
|
{
|
||||||
ensCase().nextTime(t.value());
|
ensCase().nextTime(time_.value());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ensCase().setTime(t.value(), t.timeIndex());
|
ensCase().setTime(time_.value(), time_.timeIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user