diff --git a/src/regionCoupled/derivedFvPatchFields/energyRegionCoupled/energyRegionCoupledFvPatchScalarField.C b/src/regionCoupled/derivedFvPatchFields/energyRegionCoupled/energyRegionCoupledFvPatchScalarField.C index 820596e022eed4920a65032ba4beb1724bf56112..c54293f22b2295402f77d31dbc28c9183f119380 100644 --- a/src/regionCoupled/derivedFvPatchFields/energyRegionCoupled/energyRegionCoupledFvPatchScalarField.C +++ b/src/regionCoupled/derivedFvPatchFields/energyRegionCoupled/energyRegionCoupledFvPatchScalarField.C @@ -348,7 +348,7 @@ void Foam::energyRegionCoupledFvPatchScalarField::evaluate label patchi = patch().index(); const scalarField& pp = thermoPtr_->p().boundaryField()[patchi]; - const scalarField lWeights = weights(); + const scalarField lWeights(weights()); scalarField::operator= ( @@ -416,8 +416,10 @@ patchNeighbourField() const nbrThermoPtr_->T().internalField(), nbrFaceCells ); - scalarField intNbrT = - regionCoupledPatch_.regionCoupledPatch().interpolate(nbrIntT); + scalarField intNbrT + ( + regionCoupledPatch_.regionCoupledPatch().interpolate(nbrIntT) + ); label patchi = patch().index(); const scalarField& pp = thermoPtr_->p().boundaryField()[patchi];