Skip to content

zeroFixedValuePointPatch possibly not properly setup

From inspection, we have this type of code:

template<class Type>
zeroFixedValuePointPatchField<Type>::
zeroFixedValuePointPatchField
(
    const pointPatch& p,
    const DimensionedField<Type, pointMesh>& iF,
    const dictionary& dict
)
:
    fixedValuePointPatchField<Type>(p, iF, dict, false)
{
    fixedValuePointPatchField<Type>::operator=(Type(Zero));
}

But fixedValuePointPatchField has

    // Disable assignment operators

    virtual void operator=(const Field<Type>&){}
    virtual void operator=(const Type&){}

So the patch value will never be initialised, and probably not zero either.