From bb30f1fa54b81175b5360ee48a0b8352d3c6ebb2 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Sun, 29 Jan 2012 11:45:28 +0000 Subject: [PATCH] Initialisation of fields --- .../fixedInternalValueFvPatchField.C | 2 +- .../fixedInternalValueFvPatchField.H | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValueFvPatchField/fixedInternalValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValueFvPatchField/fixedInternalValueFvPatchField.C index 20c5a7316..33416f694 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValueFvPatchField/fixedInternalValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValueFvPatchField/fixedInternalValueFvPatchField.C @@ -58,7 +58,7 @@ Foam::fixedInternalValueFvPatchField::fixedInternalValueFvPatchField ) : zeroGradientFvPatchField(p, iF), - refValue_(p.size()) + refValue_(p.size(), pTraits::zero) {} diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValueFvPatchField/fixedInternalValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValueFvPatchField/fixedInternalValueFvPatchField.H index b864728b4..d84ae55fb 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValueFvPatchField/fixedInternalValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValueFvPatchField/fixedInternalValueFvPatchField.H @@ -65,6 +65,7 @@ class fixedInternalValueFvPatchField //- Set refValue in internal field void setInInternalField() const; + public: //- Runtime type information