Skip to content

mismatch in autoMap function?

Compiler warnings for newly added code:

filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H:222:26: warning: 'Foam::filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::autoMap' hides overloaded virtual function [-Woverloaded-virtual]
            virtual void autoMap
                         ^
temperatureCoupledBase.H:205:22: note: hidden overloaded virtual function 'Foam::temperatureCoupledBase::autoMap' declared here: type mismatch at 1st parameter ('const Foam::FieldMapper &' vs 'const Foam::fvPatchFieldMapper &')
        virtual void autoMap
                     ^
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H:228:26: warning: 'Foam::filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::rmap' hides overloaded virtual function [-Woverloaded-virtual]
            virtual void rmap
                         ^
temperatureCoupledBase.H:211:22: note: hidden overloaded virtual function 'Foam::temperatureCoupledBase::rmap' declared here: type mismatch at 1st parameter ('const Foam::temperatureCoupledBase &' vs 'const fvPatchField<Foam::scalar> &' (aka 'const fvPatchField<double> &'))
        virtual void rmap
                     ^

There are a few more, but this is the gist of it. Warnings raised by clang-13