[Dune] Fwd: Re: Pulling latest dune-grid, test does not compile
Aleksejs Fomins
aleksejs.fomins at lspr.ch
Thu Mar 19 16:01:00 CET 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dear Christian,
Thank you for your reply.
I am subscribed to dune-devel, I will subscribe to the commit now.
The problem was entirely mine, as I was explicitly returning EntityPointer for CurvilinearIntersection::outside(), and the facade class did not complain about it, because it still has std::conditional there.
I just missed the moment at which this transition happened.
Best,
Aleksejs
On 19/03/15 14:46, Christian Engwer wrote:
>
>
>
> -------- Ursprüngliche Nachricht --------
> Von: Christian Engwer <christian.engwer at uni-muenster.de>
> Gesendet: 19. März 2015 14:45:37 MEZ
> An: Aleksejs Fomins <aleksejs.fomins at lspr.ch>
> Betreff: Re: [Dune] Pulling latest dune-grid, test does not compile
>
> Dear Aleksejs
>
> a) yes, they are now expected to return an entity.
> b) this is something discussed for a long time already. Different people asked about this on the mailinglist, it is listed in the recent changes and it was observable in the commits. As you didn't realise this, and as you are developing something so close to the core libraries, I strongly suggest to subscribe to the dune-devel and the dune-commit lists.
> c) thus whole change should actually not be a problem for you, if you are using the facades; aren't you? Of you are using the facades, but still encounter this problem, there is a big in the facades and it would be great if you provide more details, so that we can try to find the actual problem.
>
> Christian
>
> Am 19. März 2015 10:48:52 MEZ, schrieb Aleksejs Fomins <aleksejs.fomins at lspr.ch>:
> Dear Dune,
>
> After pulling the latest dune-grid and compiling the test that uses
> gridcheck, I get the error
>
>
> /home/fomins/gitwork/hades-github-lspr-ag/dune-grid/dune/grid/test/checkcommunicate.hh:346:51:
> error: conversion from ‘std::conditional<false, Dune::Entity<0, 3,
> const Dune::CurvilinearGrid<3, 3, double, false>,
> Dune::CurvGrid::CurvEntity>, Dune::EntityPointer<const
> Dune::CurvilinearGrid<3, 3, double, false>,
> Dune::CurvGrid::CurvEntityPointer<0, const Dune::CurvilinearGrid<3, 3,
> double, false> > > >::type {aka Dune::EntityPointer<const
> Dune::CurvilinearGrid<3, 3, double, false>,
> Dune::CurvGrid::CurvEntityPointer<0, const Dune::CurvilinearGrid<3, 3,
> double, false> > >}’ to non-scalar type
> ‘CheckCommunication<Dune::GridView<Dune::DefaultLeafGridViewTraits<const
> Dune::CurvilinearGrid<3, 3, double, false>,
> (Dune::PartitionIteratorType)4u> >, 3, Dune::DebugStream<1u, 4u>
>>>> ::Entity {aka Dune::Entity<0, 3, const Dune::CurvilinearGrid<3, 3,
> double, false>, Dune::CurvGrid::CurvEntity>}’ requested
> Entity neigh = intersection.outside();
>
> Which basically expects intersection.outside() to be an entity and not
> an entity pointer. Is this expected?
>
> Regards,
> Aleksejs
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBAgAGBQJVCuSrAAoJEDkNM7UOEwMZux4QAK4rk18Xfe4leyFS2+6fJV4L
4hV95RALTA/jXpalKVI/rdnmiSbzag9IhImueZynke7ZrrK/oiKWSH1B6AX3Obll
d+9IiqwazY1rSTewq3m05R5Y8FGNnJftktg/NPasd8wczXNRm0fzN9QPz86BUxpn
ltRtYYk13NIjbxYkbjJHjvtGsypVSnkfsdNV3BdfHbc+hC7QD3a7p+jgYhAXLujW
1Z0nNCpVJwUT9rYFxREZMD+aQ+yNHvpzT+65XyFqOsxFIZbluk0VZjZ8KMuHmXOO
kYoGVSs2iyQhQaj9hnP5bgKMAY2Ynims09S1/+JSYx+n17pSdNaXLq25CkFsZOTF
xil61gu7eVeXaZYnnTQ9x65IQEOuFQGkvRDqPr6HA3SA3lCSwbJwWeisU44P2vTn
UDAeQS00cbxpxaNUWwuZYqt/djKTikm8tValgpiiCwkDCYYcaAyCDA5j/CRmLvf3
uYWMLWW7bT64Nql3XHASAJn1NNFdaLlRLm+h4Ri8P8Xls263g4Y0+hFnDtJNa8Ba
QOJrXR/CWJ+FViMKF/nm9FRweqRhdWiQY6SjrJGCpYsLWivd+qRwKs5aJKjtrVeL
+zm4Q+g4u88TAwV2YruKJ7F9yyKicmSXqDulud5NFgb7BMrv5TA61QZe24hVRSBj
ezZpvn4Pc1OoXXyg9ARI
=PfdD
-----END PGP SIGNATURE-----
More information about the Dune
mailing list