phorgue / porousMultiphaseFoam

A porous multiphase toolbox for OpenFOAM
Other
124 stars 64 forks source link

Fix deprecation warnings with OpenFOAM v2212 #32

Closed gerlero closed 1 year ago

gerlero commented 1 year ago

Fixes the deprecation warnings for Foam::PtrList<T>::operator():

lnInclude/multiscalarMixtureI.H:198:25: warning: 'operator()' is deprecated: Since 2022-09; use "get(), set() or test() methods" [-Wdeprecated-declarations]
        if(sourceEvents_(speciesi))
                        ^

by replacing those with get() calls.