unitialised field - inconsequential

This commit is contained in:
Henrik Rusche 2013-12-03 18:40:51 +01:00
parent 4cf52812f7
commit 29ff725b7d

View file

@ -150,7 +150,11 @@ chtRcThermalDiffusivityFvPatchScalarField::calcThermalDiffusivity
} }
{ {
Field<VectorN<scalar, 4> > lData(neighbour.size()); Field<VectorN<scalar, 4> > lData
(
neighbour.size(),
pTraits<VectorN<scalar, 4> >::zero
);
const scalarField& lfNei = neighbour.originalPatchField(); const scalarField& lfNei = neighbour.originalPatchField();
scalarField lTcNei = TwOwn.shadowPatchField().patchInternalField(); scalarField lTcNei = TwOwn.shadowPatchField().patchInternalField();
@ -266,7 +270,11 @@ chtRcThermalDiffusivityFvPatchScalarField::calcTemperature
} }
{ {
Field<VectorN<scalar, 4> > lData(neighbour.size()); Field<VectorN<scalar, 4> > lData
(
neighbour.size(),
pTraits<VectorN<scalar, 4> >::zero
);
const scalarField& lfNei = const scalarField& lfNei =
ownerK.shadowPatchField().originalPatchField(); ownerK.shadowPatchField().originalPatchField();