Remove deprecated warnings
Test all cases in dumux
deprecated warnings, except the ones from sequential cases.
Warnings need to be removed are posted below:
-
Warnings brought by newly introduced customized dumux mapper.update(gridView)
:
[ 9%] Building CXX object test/freeflow/navierstokes/channel/1d/CMakeFiles/test_ff_navierstokes_1d.dir/main.cc.o
In file included from /Applications/DUMUX/dumux/dumux/discretization/staggered.hh:43,
from /Applications/DUMUX/dumux/dumux/discretization/staggered/freeflow/properties.hh:35,
from /Applications/DUMUX/dumux/test/freeflow/navierstokes/channel/1d/properties.hh:28,
from /Applications/DUMUX/dumux/test/freeflow/navierstokes/channel/1d/main.cc:45:
/Applications/DUMUX/dumux/dumux/discretization/staggered/fvgridgeometry.hh: In instantiation of 'void Dumux::StaggeredFVGridGeometry<GV, true, T>::update() [with GV = Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<1> > >; T = Dumux::StaggeredFreeFlowDefaultFVGridGeometryTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<1> > >, 1, Dumux::DefaultMapperTraits<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<1> > >, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<1> > > >, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<1> > > > > >]':
/Applications/DUMUX/dumux/test/freeflow/navierstokes/channel/1d/main.cc:78:25: required from here
/Applications/DUMUX/dumux/dumux/discretization/staggered/fvgridgeometry.hh:285:35: warning: 'void Dumux::ConformingGridIntersectionMapper<GridView>::update() [with GridView = Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<1> > >]' is deprecated: Use update(gridView) instead! Will be removed after release 3.4. [-Wdeprecated-declarations]
285 | intersectionMapper_.update();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /Applications/DUMUX/dumux/dumux/discretization/staggered/freeflow/properties.hh:32,
from /Applications/DUMUX/dumux/test/freeflow/navierstokes/channel/1d/properties.hh:28,
from /Applications/DUMUX/dumux/test/freeflow/navierstokes/channel/1d/main.cc:45:
/Applications/DUMUX/dumux/dumux/common/intersectionmapper.hh:68:10: note: declared here
68 | void update()
| ^~~~~~
-
Warnings from gmsh reader interface: --> cannot be reasonbly fixed without https://gitlab.dune-project.org/core/dune-grid/-/merge_requests/410
[ 18%] Building CXX object test/freeflow/shallowwater/poiseuilleflow/CMakeFiles/test_shallowwater_poiseuilleflow_unstructured.dir/main.cc.o
In file included from /Applications/DUMUX/dumux/dumux/io/grid/gridmanager_yasp.hh:33,
from /Applications/DUMUX/dumux/test/freeflow/shallowwater/poiseuilleflow/main.cc:36:
/Applications/DUMUX/dumux/dumux/io/grid/gridmanager_base.hh: In instantiation of 'void Dumux::GridManagerBase<GridType>::makeGridFromFile(const string&, const string&) [with GridType = Dune::UGGrid<2>; std::string = std::__cxx11::basic_string<char>]':
/Applications/DUMUX/dumux/dumux/io/grid/gridmanager_ug.hh:77:41: required from 'void Dumux::GridManager<Dune::UGGrid<dim> >::init(const string&) [with int dim = 2; std::string = std::__cxx11::basic_string<char>]'
/Applications/DUMUX/dumux/test/freeflow/shallowwater/poiseuilleflow/main.cc:55:21: required from here
/Applications/DUMUX/dumux/dumux/io/grid/gridmanager_base.hh:218:45: warning: 'static void Dune::GmshReader<GridType>::read(Dune::GridFactory<GridType>&, const string&, std::vector<int>&, std::vector<int>&, bool, bool) [with GridType = Dune::UGGrid<2>; std::string = std::__cxx11::basic_string<char>]' is deprecated: Deprecated after Dune 2.7 (ca. 2020-02): The insertBoundarySegments argument for this overload of the read method is deprecated, please omit it. See https://gitlab.dune-project.org/flyspray/FS/issues/1698. When setting insertBoundarySegments=false there is no way to correctly use the data returned in boundarySegmentToPhysicalEntity, which makes using the old method error-prone. [-Wdeprecated-declarations]
218 | Dune::GmshReader<Grid>::read(*gridFactory, fileName, boundaryMarkers, elementMarkers, verbose, boundarySegments);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Applications/DUMUX/dune-grid/dune/grid/io/file/dgfparser/gridptr.hh:31,
from /Applications/DUMUX/dune-grid/dune/grid/io/file/dgfparser/dgfparser.hh:28,
from /Applications/DUMUX/dune-grid/dune/grid/io/file/dgfparser/dgfyasp.hh:8,
from /Applications/DUMUX/dumux/dumux/io/grid/gridmanager_yasp.hh:30,
from /Applications/DUMUX/dumux/test/freeflow/shallowwater/poiseuilleflow/main.cc:36:
/Applications/DUMUX/dune-grid/dune/grid/io/file/gmshreader.hh:963:17: note: declared here
963 | static void read (Dune::GridFactory<Grid>& factory,
| ^~~~
Edited by Hanchuan Wu