2.5 release branch fails to compile against the release branch of dune-grid
When trying to compile a program using ALUGrid using the 2.5 release branch both for the core modules and ALUGrid, I get the following warning and error:
/cluster/packages/host/gcc-6.3/bin/g++-6 -DENABLE_GMP=1 -DENABLE_MPI=1 -DENABLE_PARMETIS=1 -DENABLE_SUITESPARSE=1 -DENABLE_UG=1 -DGRIDSDIR=\"/home/smuething/dune/2.5/dune-pdelab/dune/pdelab/test/grids\" -DHAVE_CONFIG_H -DMPICH_SKIP_MPICXX -DMPIPP_H -DModelP -DUG_USE_NEW_DIMENSION_DEFINES -I. -I/home/smuething/dune/2.5/dune-pdelab -I/cluster/intel/impi/5.1.3.181/intel64/include -I/home/smuething/dune/2.5/dune-common -I/home/smuething/dune/2.5/dune-geometry -I/home/smuething/dune/2.5/dune-uggrid -I/home/smuething/dune/2.5/dune-uggrid/low -I/home/smuething/dune/2.5/dune-uggrid/gm -I/home/smuething/dune/2.5/dune-uggrid/dev -I/home/smuething/dune/2.5/dune-uggrid/dom -I/home/smuething/dune/2.5/dune-uggrid/np -I/home/smuething/dune/2.5/dune-uggrid/ui -I/home/smuething/dune/2.5/dune-uggrid/np/algebra -I/home/smuething/dune/2.5/dune-uggrid/np/udm -I/home/smuething/dune/2.5/dune-uggrid/parallel -I/home/smuething/dune/2.5/dune-uggrid/parallel/ddd -I/home/smuething/dune/2.5/dune-uggrid/parallel/ppif -I/home/smuething/dune/2.5/dune-uggrid/parallel/dddif -I/home/smuething/dune/2.5/dune-uggrid/parallel/util -I/home/smuething/dune/2.5/dune-uggrid/parallel/ddd/include -I/home/smuething/dune/2.5/dune-grid -I/home/smuething/dune/2.5/dune-typetree -I/home/smuething/dune/2.5/dune-localfunctions -I/home/smuething/dune/2.5/dune-istl -I/home/smuething/dune/2.5/dune-functions -I/home/smuething/dune/2.5/dune-alugrid -I/cluster/packages/host/suitesparse-4.5.3_gcc-6_openblas-0.2_metis-5.1/include -I/cluster/packages/host/parmetis-4.0.3_gcc-6_intelmpi-5.1.3_metis-5.1/include -I/cluster/packages/host/metis-5.1.0_gcc-6/include -I/cluster/packages/host/gmp-6.1.0_gcc-6/include -Wall -D_REENTRANT -march=native -fvisibility-inlines-hidden -Wall -fvisibility-inlines-hidden -fdiagnostics-color=always -UNDEBUG -std=c++14 -g0 -O3 -ffast-math -funroll-loops -ftree-vectorize -fPIE -MD -MT dune/pdelab/test/CMakeFiles/testbdmfem.dir/testbdmfem.cc.o -MF dune/pdelab/test/CMakeFiles/testbdmfem.dir/testbdmfem.cc.o.d -o dune/pdelab/test/CMakeFiles/testbdmfem.dir/testbdmfem.cc.o -c /home/smuething/dune/2.5/dune-pdelab/dune/pdelab/test/testbdmfem.cc
In file included from /home/smuething/dune/2.5/dune-grid/dune/grid/io/file/dgfparser/dgfparser.hh:28:0,
from /home/smuething/dune/2.5/dune-grid/dune/grid/io/file/dgfparser/dgfyasp.hh:8,
from /home/smuething/dune/2.5/dune-alugrid/dune/alugrid/common/structuredgridfactory.hh:24,
from /home/smuething/dune/2.5/dune-alugrid/dune/alugrid/grid.hh:19,
from /home/smuething/dune/2.5/dune-pdelab/dune/pdelab/test/gridexamples.hh:23,
from /home/smuething/dune/2.5/dune-pdelab/dune/pdelab/test/testbdmfem.cc:17:
/home/smuething/dune/2.5/dune-grid/dune/grid/io/file/dgfparser/gridptr.hh: In instantiation of ‘Dune::GridPtr<GridType>::GridPtr(std::istream&, Dune::GridPtr<GridType>::MPICommunicatorType) [with GridType = Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u>; std::istream = std::basic_istream<char>; Dune::GridPtr<GridType>::MPICommunicatorType = int]’:
/home/smuething/dune/2.5/dune-alugrid/dune/alugrid/common/structuredgridfactory.hh:307:54: required from ‘static Dune::StructuredGridFactory<Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm> >::SharedPtrType Dune::StructuredGridFactory<Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm> >::createSimplexGrid(const Dune::FieldVector<typename Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm>::ctype, dimworld>&, const Dune::FieldVector<typename Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm>::ctype, dimworld>&, const std::array<int_t, dim>&, Dune::StructuredGridFactory<Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm> >::MPICommunicatorType) [with int_t = unsigned int; int dim = 2; int dimworld = 2; Dune::ALUGridElementType eltype = (Dune::ALUGridElementType)0u; Dune::ALUGridRefinementType refineType = (Dune::ALUGridRefinementType)1u; Comm = Dune::ALUGridMPIComm; Dune::StructuredGridFactory<Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm> >::SharedPtrType = Dune::GridPtr<Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u> >::mygrid_ptr; typename Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm>::ctype = double; Dune::StructuredGridFactory<Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm> >::MPICommunicatorType = int]’
/home/smuething/dune/2.5/dune-pdelab/dune/pdelab/test/testbdmfem.cc:66:188: required from here
/home/smuething/dune/2.5/dune-grid/dune/grid/io/file/dgfparser/gridptr.hh:144:58: warning: ‘Dune::DGFGridFactory<GridType>::DGFGridFactory(std::istream&, Dune::DGFGridFactory<GridType>::MPICommunicatorType) [with G = Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u>; std::istream = std::basic_istream<char>; Dune::DGFGridFactory<GridType>::MPICommunicatorType = int]’ is deprecated [-Wdeprecated-declarations]
DGFGridFactory< GridType > dgfFactory( input, comm );
^
In file included from /home/smuething/dune/2.5/dune-grid/dune/grid/io/file/dgfparser/dgfparser.hh:30:0,
from /home/smuething/dune/2.5/dune-grid/dune/grid/io/file/dgfparser/dgfyasp.hh:8,
from /home/smuething/dune/2.5/dune-alugrid/dune/alugrid/common/structuredgridfactory.hh:24,
from /home/smuething/dune/2.5/dune-alugrid/dune/alugrid/grid.hh:19,
from /home/smuething/dune/2.5/dune-pdelab/dune/pdelab/test/gridexamples.hh:23,
from /home/smuething/dune/2.5/dune-pdelab/dune/pdelab/test/testbdmfem.cc:17:
/home/smuething/dune/2.5/dune-grid/dune/grid/io/file/dgfparser/dgfgridfactory.hh:47:14: note: declared here
explicit DGFGridFactory ( std::istream &input,
^~~~~~~~~~~~~~
/home/smuething/dune/2.5/dune-grid/dune/grid/io/file/dgfparser/dgfgridfactory.hh: In instantiation of ‘int Dune::DGFGridFactory<GridType>::boundaryId(const Intersection&) const [with Intersection = Dune::Intersection<const Dune::ALU3dGrid<2, 2, (Dune::ALU3dGridElementType)4u, Dune::ALUGridMPIComm>, Dune::LevelIntersectionWrapper<const Dune::ALU3dGrid<2, 2, (Dune::ALU3dGridElementType)4u, Dune::ALUGridMPIComm> > >; G = Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u>]’:
/home/smuething/dune/2.5/dune-grid/dune/grid/io/file/dgfparser/gridptr.hh:373:27: required from ‘void Dune::GridPtr<GridType>::initialize(Dune::DGFGridFactory<GridType>&) [with GridType = Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u>]’
/home/smuething/dune/2.5/dune-grid/dune/grid/io/file/dgfparser/gridptr.hh:145:17: required from ‘Dune::GridPtr<GridType>::GridPtr(std::istream&, Dune::GridPtr<GridType>::MPICommunicatorType) [with GridType = Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u>; std::istream = std::basic_istream<char>; Dune::GridPtr<GridType>::MPICommunicatorType = int]’
/home/smuething/dune/2.5/dune-alugrid/dune/alugrid/common/structuredgridfactory.hh:307:54: required from ‘static Dune::StructuredGridFactory<Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm> >::SharedPtrType Dune::StructuredGridFactory<Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm> >::createSimplexGrid(const Dune::FieldVector<typename Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm>::ctype, dimworld>&, const Dune::FieldVector<typename Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm>::ctype, dimworld>&, const std::array<int_t, dim>&, Dune::StructuredGridFactory<Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm> >::MPICommunicatorType) [with int_t = unsigned int; int dim = 2; int dimworld = 2; Dune::ALUGridElementType eltype = (Dune::ALUGridElementType)0u; Dune::ALUGridRefinementType refineType = (Dune::ALUGridRefinementType)1u; Comm = Dune::ALUGridMPIComm; Dune::StructuredGridFactory<Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm> >::SharedPtrType = Dune::GridPtr<Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u> >::mygrid_ptr; typename Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm>::ctype = double; Dune::StructuredGridFactory<Dune::ALUGrid<dim, dimworld, eltype, refinementtype, Comm> >::MPICommunicatorType = int]’
/home/smuething/dune/2.5/dune-pdelab/dune/pdelab/test/testbdmfem.cc:66:188: required from here
/home/smuething/dune/2.5/dune-grid/dune/grid/io/file/dgfparser/dgfgridfactory.hh:109:27: error: ‘const class Dune::Intersection<const Dune::ALU3dGrid<2, 2, (Dune::ALU3dGridElementType)4u, Dune::ALUGridMPIComm>, Dune::LevelIntersectionWrapper<const Dune::ALU3dGrid<2, 2, (Dune::ALU3dGridElementType)4u, Dune::ALUGridMPIComm> > >’ has no member named ‘boundaryId’; did you mean ‘boundary’?
return intersection.boundaryId();
When I revert c076ed54, the problem goes away. It don't really know what's wrong here, as I'm out of my depth with everything involving DGF...