From 162a0eac4d3cc99e5388553501911c70f293ba72 Mon Sep 17 00:00:00 2001 From: sergio <sergio> Date: Tue, 13 Dec 2016 13:30:42 -0800 Subject: [PATCH] Adding autoPtr clone constructors and correcting T.oldTime() --- .../humidityTemperatureCoupledMixedFvPatchScalarField.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/thermophysicalModels/properties/liquidPropertiesFvPatchFields/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.C b/src/thermophysicalModels/properties/liquidPropertiesFvPatchFields/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.C index 3d5f1e8e5cd..c97553d74d1 100644 --- a/src/thermophysicalModels/properties/liquidPropertiesFvPatchFields/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.C +++ b/src/thermophysicalModels/properties/liquidPropertiesFvPatchFields/humidityTemperatureCoupledMixed/humidityTemperatureCoupledMixedFvPatchScalarField.C @@ -192,7 +192,7 @@ humidityTemperatureCoupledMixedFvPatchScalarField QrNbrName_(psf.QrNbrName_), QrName_(psf.QrName_), specieName_(psf.specieName_), - liquid_(psf.liquid_), + liquid_(psf.liquid_, false), liquidDict_(psf.liquidDict_), mass_(psf.mass_, mapper), Tvap_(psf.Tvap_), @@ -351,7 +351,7 @@ humidityTemperatureCoupledMixedFvPatchScalarField QrNbrName_(psf.QrNbrName_), QrName_(psf.QrName_), specieName_(psf.specieName_), - liquid_(psf.liquid_), + liquid_(psf.liquid_, false), liquidDict_(psf.liquidDict_), mass_(psf.mass_), Tvap_(psf.Tvap_), @@ -455,7 +455,7 @@ void Foam::humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs() const volScalarField& T = static_cast<const volScalarField&>(dimensionedInternalField()); - const fvPatchField<scalar>& TpOld = T.boundaryField()[patch().index()]; + const scalarField TpOld(T.oldTime().boundaryField()[patch().index()]); scalarField Tin(patchInternalField()); -- GitLab