From 402915798d72dac5544837a8ac632fa7a35bac34 Mon Sep 17 00:00:00 2001 From: Henry Weller <http://cfd.direct> Date: Tue, 22 Mar 2016 08:27:59 +0000 Subject: [PATCH] fvPatchFields: Use 'Zero' rather than 'pTraits<Type>::zero' to initialize to 0 This new approach to 0 initialization is simpler, cleaner, more readable and more efficient. The rest of the OpenFOAM code will be updated in due course. --- .../basic/fixedGradient/fixedGradientFvPatchField.C | 4 ++-- .../basic/fixedValue/fixedValueFvPatchField.C | 2 +- .../basic/zeroGradient/zeroGradientFvPatchField.C | 6 +++--- .../basic/zeroGradient/zeroGradientFvPatchField.H | 2 +- .../derived/advective/advectiveFvPatchField.C | 10 +++++----- .../cylindricalInletVelocityFvPatchVectorField.C | 4 ++-- .../externalCoupledMixedFvPatchField.C | 6 +++--- .../derived/fixedJump/fixedJumpFvPatchField.C | 4 ++-- .../derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C | 6 +++--- .../fixedNormalSlip/fixedNormalSlipFvPatchField.C | 2 +- .../derived/inletOutlet/inletOutletFvPatchField.C | 6 +++--- .../inletOutletTotalTemperatureFvPatchScalarField.C | 8 ++++---- .../derived/mappedField/mappedPatchFieldBase.C | 4 ++-- .../mappedFixedInternalValueFvPatchField.C | 2 +- .../derived/outletInlet/outletInletFvPatchField.C | 4 ++-- .../timeVaryingMappedFixedValue/AverageIOField.C | 2 +- .../timeVaryingMappedFixedValueFvPatchField.C | 12 ++++++------ .../turbulentInlet/turbulentInletFvPatchField.C | 2 +- .../uniformInletOutletFvPatchField.C | 8 ++++---- .../fields/fvPatchFields/fvPatchField/fvPatchField.C | 4 ++-- 20 files changed, 49 insertions(+), 49 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C index f66d376e382..bb789ed827c 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C @@ -36,7 +36,7 @@ Foam::fixedGradientFvPatchField<Type>::fixedGradientFvPatchField ) : fvPatchField<Type>(p, iF), - gradient_(p.size(), pTraits<Type>::zero) + gradient_(p.size(), Zero) {} @@ -176,7 +176,7 @@ Foam::fixedGradientFvPatchField<Type>::gradientInternalCoeffs() const { return tmp<Field<Type>> ( - new Field<Type>(this->size(), pTraits<Type>::zero) + new Field<Type>(this->size(), Zero) ); } diff --git a/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C index 445bed4f7eb..b6841f33533 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C @@ -117,7 +117,7 @@ Foam::fixedValueFvPatchField<Type>::valueInternalCoeffs { return tmp<Field<Type>> ( - new Field<Type>(this->size(), pTraits<Type>::zero) + new Field<Type>(this->size(), Zero) ); } diff --git a/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.C index 4601904a39c..4395534fe2a 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.C @@ -125,7 +125,7 @@ Foam::zeroGradientFvPatchField<Type>::valueBoundaryCoeffs { return tmp<Field<Type>> ( - new Field<Type>(this->size(), pTraits<Type>::zero) + new Field<Type>(this->size(), Zero) ); } @@ -136,7 +136,7 @@ Foam::zeroGradientFvPatchField<Type>::gradientInternalCoeffs() const { return tmp<Field<Type>> ( - new Field<Type>(this->size(), pTraits<Type>::zero) + new Field<Type>(this->size(), Zero) ); } @@ -147,7 +147,7 @@ Foam::zeroGradientFvPatchField<Type>::gradientBoundaryCoeffs() const { return tmp<Field<Type>> ( - new Field<Type>(this->size(), pTraits<Type>::zero) + new Field<Type>(this->size(), Zero) ); } diff --git a/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.H index 188dbdb6bd6..2b0f7a31f7e 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.H @@ -143,7 +143,7 @@ public: { return tmp<Field<Type>> ( - new Field<Type>(this->size(), pTraits<Type>::zero) + new Field<Type>(this->size(), Zero) ); } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.C index 5fc626e44c4..6d17c751873 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.C @@ -45,11 +45,11 @@ Foam::advectiveFvPatchField<Type>::advectiveFvPatchField mixedFvPatchField<Type>(p, iF), phiName_("phi"), rhoName_("rho"), - fieldInf_(pTraits<Type>::zero), + fieldInf_(Zero), lInf_(-GREAT) { - this->refValue() = pTraits<Type>::zero; - this->refGrad() = pTraits<Type>::zero; + this->refValue() = Zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; } @@ -82,7 +82,7 @@ Foam::advectiveFvPatchField<Type>::advectiveFvPatchField mixedFvPatchField<Type>(p, iF), phiName_(dict.lookupOrDefault<word>("phi", "phi")), rhoName_(dict.lookupOrDefault<word>("rho", "rho")), - fieldInf_(pTraits<Type>::zero), + fieldInf_(Zero), lInf_(-GREAT) { if (dict.found("value")) @@ -98,7 +98,7 @@ Foam::advectiveFvPatchField<Type>::advectiveFvPatchField } this->refValue() = *this; - this->refGrad() = pTraits<Type>::zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; if (dict.readIfPresent("lInf", lInf_)) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C index 575eae01f7c..d6223500e0d 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C @@ -40,8 +40,8 @@ cylindricalInletVelocityFvPatchVectorField ) : fixedValueFvPatchField<vector>(p, iF), - centre_(pTraits<vector>::zero), - axis_(pTraits<vector>::zero), + centre_(Zero), + axis_(Zero), axialVelocity_(), radialVelocity_(), rpm_() diff --git a/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C index e0a3e4e4b1a..b3629e877f3 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C @@ -455,8 +455,8 @@ externalCoupledMixedFvPatchField initialised_(false), coupledPatchIDs_() { - this->refValue() = pTraits<Type>::zero; - this->refGrad() = pTraits<Type>::zero; + this->refValue() = Zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; } @@ -534,7 +534,7 @@ externalCoupledMixedFvPatchField // initialise as a fixed value this->refValue() = *this; - this->refGrad() = pTraits<Type>::zero; + this->refGrad() = Zero; this->valueFraction() = 1.0; } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C index 88e9b93b401..13eba7efa00 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C @@ -35,7 +35,7 @@ Foam::fixedJumpFvPatchField<Type>::fixedJumpFvPatchField ) : jumpCyclicFvPatchField<Type>(p, iF), - jump_(this->size(), pTraits<Type>::zero) + jump_(this->size(), Zero) {} @@ -62,7 +62,7 @@ Foam::fixedJumpFvPatchField<Type>::fixedJumpFvPatchField ) : jumpCyclicFvPatchField<Type>(p, iF), - jump_(p.size(), pTraits<Type>::zero) + jump_(p.size(), Zero) { if (this->cyclicPatch().owner()) { diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C index 59b606b5f7c..354a84bb2d5 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C @@ -35,7 +35,7 @@ Foam::fixedJumpAMIFvPatchField<Type>::fixedJumpAMIFvPatchField ) : jumpCyclicAMIFvPatchField<Type>(p, iF), - jump_(this->size(), pTraits<Type>::zero) + jump_(this->size(), Zero) {} @@ -62,7 +62,7 @@ Foam::fixedJumpAMIFvPatchField<Type>::fixedJumpAMIFvPatchField ) : jumpCyclicAMIFvPatchField<Type>(p, iF), - jump_(p.size(), pTraits<Type>::zero) + jump_(p.size(), Zero) { if (this->cyclicAMIPatch().owner()) { @@ -128,7 +128,7 @@ Foam::tmp<Foam::Field<Type>> Foam::fixedJumpAMIFvPatchField<Type>::jump() const return this->cyclicAMIPatch().interpolate ( nbrPatch.jump(), - Field<Type>(this->size(), pTraits<Type>::zero) + Field<Type>(this->size(), Zero) ); } else diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.C index df658614fb0..d2a8a6b425d 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.C @@ -37,7 +37,7 @@ Foam::fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField ) : transformFvPatchField<Type>(p, iF), - fixedValue_(p.size(), pTraits<Type>::zero) + fixedValue_(p.size(), Zero) {} diff --git a/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.C index 19d887e2578..198c81d10d8 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.C @@ -37,8 +37,8 @@ Foam::inletOutletFvPatchField<Type>::inletOutletFvPatchField mixedFvPatchField<Type>(p, iF), phiName_("phi") { - this->refValue() = pTraits<Type>::zero; - this->refGrad() = pTraits<Type>::zero; + this->refValue() = Zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; } @@ -82,7 +82,7 @@ Foam::inletOutletFvPatchField<Type>::inletOutletFvPatchField fvPatchField<Type>::operator=(this->refValue()); } - this->refGrad() = pTraits<Type>::zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.C index 607f88934fa..54aa5346e9a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.C @@ -44,8 +44,8 @@ inletOutletTotalTemperatureFvPatchScalarField gamma_(0.0), T0_(p.size(), 0.0) { - this->refValue() = pTraits<scalar>::zero; - this->refGrad() = pTraits<scalar>::zero; + this->refValue() = Zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; } @@ -83,7 +83,7 @@ inletOutletTotalTemperatureFvPatchScalarField { this->phiName_ = dict.lookupOrDefault<word>("phi", "phi"); - this->refValue() = pTraits<scalar>::zero; + this->refValue() = Zero; if (dict.found("value")) { fvPatchField<scalar>::operator= @@ -96,7 +96,7 @@ inletOutletTotalTemperatureFvPatchScalarField fvPatchField<scalar>::operator=(T0_); } - this->refGrad() = pTraits<scalar>::zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedPatchFieldBase.C b/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedPatchFieldBase.C index 1c52eadef53..589afaf3098 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedPatchFieldBase.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedPatchFieldBase.C @@ -94,7 +94,7 @@ mappedPatchFieldBase<Type>::mappedPatchFieldBase patchField_(patchField), fieldName_(patchField_.dimensionedInternalField().name()), setAverage_(false), - average_(pTraits<Type>::zero), + average_(Zero), interpolationScheme_(interpolationCell<Type>::typeName) {} @@ -259,7 +259,7 @@ tmp<Field<Type>> mappedPatchFieldBase<Type>::mappedField() const } case mappedPatchBase::NEARESTFACE: { - Field<Type> allValues(nbrMesh.nFaces(), pTraits<Type>::zero); + Field<Type> allValues(nbrMesh.nFaces(), Zero); const fieldType& nbrField = sampleField(); diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.C index ba3a0e02092..082d9944eda 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.C @@ -145,7 +145,7 @@ void Foam::mappedFixedInternalValueFvPatchField<Type>::updateCoeffs() } case mappedPatchBase::NEARESTFACE: { - Field<Type> allValues(nbrMesh.nFaces(), pTraits<Type>::zero); + Field<Type> allValues(nbrMesh.nFaces(), Zero); const FieldType& nbrField = this->sampleField(); diff --git a/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.C index d6f69f823a8..b79fd2b83bf 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.C @@ -38,7 +38,7 @@ Foam::outletInletFvPatchField<Type>::outletInletFvPatchField phiName_("phi") { this->refValue() = *this; - this->refGrad() = pTraits<Type>::zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; } @@ -82,7 +82,7 @@ Foam::outletInletFvPatchField<Type>::outletInletFvPatchField fvPatchField<Type>::operator=(this->refValue()); } - this->refGrad() = pTraits<Type>::zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/AverageIOField.C b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/AverageIOField.C index 68caf7d14c4..af098508e48 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/AverageIOField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/AverageIOField.C @@ -50,7 +50,7 @@ Foam::AverageIOField<Type>::AverageIOField : regIOobject(io), Field<Type>(size), - average_(pTraits<Type>::zero) + average_(Zero) {} diff --git a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C index e7edad23a5f..94c090296a1 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C @@ -45,10 +45,10 @@ timeVaryingMappedFixedValueFvPatchField sampleTimes_(0), startSampleTime_(-1), startSampledValues_(0), - startAverage_(pTraits<Type>::zero), + startAverage_(Zero), endSampleTime_(-1), endSampledValues_(0), - endAverage_(pTraits<Type>::zero), + endAverage_(Zero), offset_() {} @@ -78,10 +78,10 @@ timeVaryingMappedFixedValueFvPatchField sampleTimes_(0), startSampleTime_(-1), startSampledValues_(0), - startAverage_(pTraits<Type>::zero), + startAverage_(Zero), endSampleTime_(-1), endSampledValues_(0), - endAverage_(pTraits<Type>::zero), + endAverage_(Zero), offset_(Function1<Type>::New("offset", dict)) { if @@ -134,10 +134,10 @@ timeVaryingMappedFixedValueFvPatchField sampleTimes_(0), startSampleTime_(-1), startSampledValues_(0), - startAverage_(pTraits<Type>::zero), + startAverage_(Zero), endSampleTime_(-1), endSampledValues_(0), - endAverage_(pTraits<Type>::zero), + endAverage_(Zero), offset_(ptf.offset_, false) {} diff --git a/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C index 771586d6a8e..4527eca0098 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C @@ -36,7 +36,7 @@ Foam::turbulentInletFvPatchField<Type>::turbulentInletFvPatchField : fixedValueFvPatchField<Type>(p, iF), ranGen_(label(0)), - fluctuationScale_(pTraits<Type>::zero), + fluctuationScale_(Zero), referenceField_(p.size()), alpha_(0.1), curTimeIndex_(-1) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C index c68304a93bf..2ae611dc17d 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C @@ -37,8 +37,8 @@ Foam::uniformInletOutletFvPatchField<Type>::uniformInletOutletFvPatchField mixedFvPatchField<Type>(p, iF), phiName_("phi") { - this->refValue() = pTraits<Type>::zero; - this->refGrad() = pTraits<Type>::zero; + this->refValue() = Zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; } @@ -70,7 +70,7 @@ Foam::uniformInletOutletFvPatchField<Type>::uniformInletOutletFvPatchField fvPatchField<Type>::operator=(this->refValue()); } - this->refGrad() = pTraits<Type>::zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; } @@ -94,7 +94,7 @@ Foam::uniformInletOutletFvPatchField<Type>::uniformInletOutletFvPatchField this->refValue() = uniformInletValue_->value(this->db().time().timeOutputValue()); - this->refGrad() = pTraits<Type>::zero; + this->refGrad() = Zero; this->valueFraction() = 0.0; // Initialize the patch value to the refValue diff --git a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.C b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.C index 856c1a174f2..88cd19d7123 100644 --- a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.C @@ -116,14 +116,14 @@ Foam::fvPatchField<Type>::fvPatchField { if (dict.found("value")) { - fvPatchField<Type>::operator= + Field<Type>::operator= ( Field<Type>("value", dict, p.size()) ); } else if (!valueRequired) { - fvPatchField<Type>::operator=(pTraits<Type>::zero); + Field<Type>::operator=(Zero); } else { -- GitLab