phorgue / porousMultiphaseFoam

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

Replace call to deprecated tmp::empty() with bool evaluation #26

Closed gerlero closed 2 years ago

gerlero commented 2 years ago

Fixes this deprecation warning:

eventFile/eventFile.C:213:19: warning: 'empty' is deprecated: Since 2020-07; use "bool operator" [-Wdeprecated-declarations]
    if(ddtScheme_.empty())
                  ^
/Volumes/OpenFOAM-v2112/src/OpenFOAM/lnInclude/tmp.H:301:9: note: 'empty' has been explicitly marked deprecated here