Bug found for multidomain_embedded_1d3d test case in dune-foam grid after switching dune-grid>=2.8
Bug report
What happened / Problem description:
I got the following error message:
In file included from /Applications/DUMUX/dune-foamgrid/dune/foamgrid/foamgrid.hh:796,
from /Applications/DUMUX/dumux/dumux/io/grid/gridmanager_foam.hh:29,
from /Applications/DUMUX/dumux/test/multidomain/embedded/1d3d/1p_1p/main.cc:41:
/Applications/DUMUX/dune-foamgrid/dune/foamgrid/foamgrid/foamgridfactory.hh: In instantiation of 'Dune::ToUniquePtr<Dune::FoamGrid<1, dimworld, ct> > Dune::GridFactory<Dune::FoamGrid<1, dimworld, ct> >::createGrid() [with int dimworld = 3; ct = double; Dune::ToUniquePtr<Dune::FoamGrid<1, dimworld, ct> > = std::unique_ptr<Dune::FoamGrid<1, 3>, std::default_delete<Dune::FoamGrid<1, 3> > >]':
/Applications/DUMUX/dumux/dumux/io/grid/gridmanager_foam.hh:160:73: required from 'void Dumux::GridManager<Dune::FoamGrid<1, dimworld> >::init(const string&) [with int dimworld = 3; std::string = std::__cxx11::basic_string<char>]'
/Applications/DUMUX/dumux/test/multidomain/embedded/1d3d/1p_1p/main.cc:76:27: required from here
/Applications/DUMUX/dune-foamgrid/dune/foamgrid/foamgrid/foamgridfactory.hh:259:20: error: could not convert 'tmp' from Dune::FoamGrid<1, 3>*' to 'Dune::ToUniquePtr<Dune::FoamGrid<1, 3> >' {aka 'std::unique_ptr<Dune::FoamGrid<1, 3>, std::default_delete<Dune::FoamGrid<1, 3> > >'}
259 | return tmp;
| ^~~
| |
| Dune::FoamGrid<1, 3>*
It looks like a type convert problem in foamgridfactory.hh
.
But I am not sure what caused this and how to fix it. Can anyone give me some help?
How to reproduce it (as minimally and precisely as possible): Test dumux with dune>=2.8
Anything else we need to know?:
Environment:
- Dune version: 2.8
- DuMux version: 3.4
- Others: compliers are gcc-11, g++-11