From 29ff725b7de5355827e07bdd56b84aba760f6f94 Mon Sep 17 00:00:00 2001 From: Henrik Rusche Date: Tue, 3 Dec 2013 18:40:51 +0100 Subject: [PATCH] unitialised field - inconsequential --- .../chtRcThermalDiffusivityFvPatchScalarField.C | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/applications/solvers/coupled/conjugateHeatFoam/conjugateHeatTransfer/fvPatchFields/chtRcThermalDiffusivity/chtRcThermalDiffusivityFvPatchScalarField.C b/applications/solvers/coupled/conjugateHeatFoam/conjugateHeatTransfer/fvPatchFields/chtRcThermalDiffusivity/chtRcThermalDiffusivityFvPatchScalarField.C index 8280f2ec4..bedbcba0d 100644 --- a/applications/solvers/coupled/conjugateHeatFoam/conjugateHeatTransfer/fvPatchFields/chtRcThermalDiffusivity/chtRcThermalDiffusivityFvPatchScalarField.C +++ b/applications/solvers/coupled/conjugateHeatFoam/conjugateHeatTransfer/fvPatchFields/chtRcThermalDiffusivity/chtRcThermalDiffusivityFvPatchScalarField.C @@ -150,7 +150,11 @@ chtRcThermalDiffusivityFvPatchScalarField::calcThermalDiffusivity } { - Field > lData(neighbour.size()); + Field > lData + ( + neighbour.size(), + pTraits >::zero + ); const scalarField& lfNei = neighbour.originalPatchField(); scalarField lTcNei = TwOwn.shadowPatchField().patchInternalField(); @@ -266,7 +270,11 @@ chtRcThermalDiffusivityFvPatchScalarField::calcTemperature } { - Field > lData(neighbour.size()); + Field > lData + ( + neighbour.size(), + pTraits >::zero + ); const scalarField& lfNei = ownerK.shadowPatchField().originalPatchField();