[Dune] Integrating deprecation of EntityPointer

Christoph Grüninger christoph.grueninger at iws.uni-stuttgart.de
Wed Feb 4 21:08:57 CET 2015


Hi Steffen,
I just checked dune-grid without external dependencies using
GCC 5 pre-release: it works but with a host of warnings.

> I don’t have Alberta working here, so I don’t know whether 
> the gridcheck passes, but I’ll work on that later.

Dosn't work for me:
In file included from 
/home/gruenich/dune/complete/dune-grid/dune/grid/io/file/test/gmshtest.cc:35:0:
/home/gruenich/dune/complete/dune-grid/dune/grid/test/gridcheck.cc: 
In instantiation of ‘void zeroEntityConsistency(Grid&) [with 
Grid = Dune::AlbertaGrid<2, 2>]’:
/home/gruenich/dune/complete/dune-grid/dune/grid/test/gridcheck.cc:1067:24: 
  required from ‘void gridcheck(Grid&) [with Grid = 
Dune::AlbertaGrid<2, 2>]’
/home/gruenich/dune/complete/dune-grid/dune/grid/io/file/test/gmshtest.cc:62:12: 
  required from ‘void testReadingAndWritingGrid(const string&, 
const string&, int) [with GridType = Dune::AlbertaGrid<2, 2>; 
std::string = std::basic_string<char>]’
/home/gruenich/dune/complete/dune-grid/dune/grid/io/file/test/gmshtest.cc:129:116: 
  required from here
/home/gruenich/dune/complete/dune-grid/dune/grid/test/gridcheck.cc:211:55: 
error: conversion from ‘std::conditional<false, 
Dune::Entity<0, 2, const Dune::AlbertaGrid<2, 2>, 
Dune::AlbertaGridEntity>, Dune::EntityPointer<const 
Dune::AlbertaGrid<2, 2>, Dune::AlbertaGridEntityPointer<0, 
const Dune::AlbertaGrid<2, 2> > > >::type {aka 
Dune::EntityPointer<const Dune::AlbertaGrid<2, 2>, 
Dune::AlbertaGridEntityPointer<0, const Dune::AlbertaGrid<2, 
2> > >}’ to non-scalar type ‘Entity {aka Dune::Entity<0, 2, 
const Dune::AlbertaGrid<2, 2>, Dune::AlbertaGridEntity>}’ 
requested
      Entity subEntity = it->template subEntity< 0 >( 0 );
                                                        ^

Bye
Christoph

-- 
Je n'ai rien contre les étrangers, quelques uns de mes 
meilleurs amis
sont des étrangers. Mais ces étrangers là ne sont pas de chez 
nous!
[Agecanonix, Astérix - Le cadeau de César]




More information about the Dune mailing list