Initialisation of fields

This commit is contained in:
Hrvoje Jasak 2012-01-29 11:45:28 +00:00
parent 734ed708d0
commit bb30f1fa54
2 changed files with 2 additions and 1 deletions

View file

@ -58,7 +58,7 @@ Foam::fixedInternalValueFvPatchField<Type>::fixedInternalValueFvPatchField
) )
: :
zeroGradientFvPatchField<Type>(p, iF), zeroGradientFvPatchField<Type>(p, iF),
refValue_(p.size()) refValue_(p.size(), pTraits<Type>::zero)
{} {}

View file

@ -65,6 +65,7 @@ class fixedInternalValueFvPatchField
//- Set refValue in internal field //- Set refValue in internal field
void setInInternalField() const; void setInInternalField() const;
public: public:
//- Runtime type information //- Runtime type information