[dune-fem] Bug in scalarproducts.hh due to Dune::GenericOperator

Claus-Justus Heine Claus-Justus.Heine at IANS.Uni-Stuttgart.DE
Mon Feb 9 11:58:11 CET 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 09.02.15 um 11:19 schrieb Agnese, Marco:
> Dear Claus, now everything works. Thank you for the quick fix.

Nope, no need for thanks. I hosed it up, first place.

> 
> Regards, Marco. ________________________________________ From:
> dune-fem-bounces+m.agnese13=imperial.ac.uk at dune-project.org
> [dune-fem-bounces+m.agnese13=imperial.ac.uk at dune-project.org] on
> behalf of dune-fem-request at dune-project.org
> [dune-fem-request at dune-project.org] Sent: Saturday, February 07,
> 2015 11:00 AM To: dune-fem at dune-project.org Subject: dune-fem
> Digest, Vol 35, Issue 3
> 
> Send dune-fem mailing list submissions to 
> dune-fem at dune-project.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit 
> http://lists.dune-project.org/mailman/listinfo/dune-fem or, via
> email, send a message with subject or body 'help' to 
> dune-fem-request at dune-project.org
> 
> You can reach the person managing the list at 
> dune-fem-owner at dune-project.org
> 
> When replying, please edit your Subject line so it is more
> specific than "Re: Contents of dune-fem digest..."
> 
> 
> Today's Topics:
> 
> 1. Re:  Bug in scalarproducts.hh due to Dune::GenericOperator 
> (Claus-Justus Heine) 2. Re:  Bug in scalarproducts.hh due to
> Dune::GenericOperator (Claus-Justus Heine)
> 
> 
> ----------------------------------------------------------------------
>
>  Message: 1 Date: Fri, 06 Feb 2015 20:23:24 +0100 From:
> Claus-Justus Heine <Claus-Justus.Heine at ians.uni-stuttgart.de> To:
> "dune-fem at dune-project.org" <dune-fem at dune-project.org> Subject:
> Re: [dune-fem] Bug in scalarproducts.hh due to 
> Dune::GenericOperator Message-ID:
> <54D514AC.1070202 at ians.uni-stuttgart.de> Content-Type: text/plain;
> charset=utf-8
> 
> Am 06.02.2015 um 19:00 schrieb Agnese, Marco:
>> Hi Claus, I am using gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1).
> 
>> Do you think id depends on the compiler?
> 
> No, actualally, on my way home I just realized that the
> test-program I was using just die not test this very method.
> 
> I'll fix it, should not be too difficult.
> 
> Cheers,
> 
> Claus
> 
> 
>> Cheers, Marco. ________________________________________ From:
>> Claus-Justus Heine [Claus-Justus.Heine at IANS.Uni-Stuttgart.DE] 
>> Sent: Friday, February 06, 2015 5:57 PM To: Agnese, Marco 
>> Subject: Re: [dune-fem] Bug in scalarproducts.hh due to
>> Dune::GenericOperator
> 
>> Hi Marco,
> 
>> well, I suppose its me who hosed things up. Which version of g++
>> are you using?
> 
>> Cheers,
> 
>> Claus
> 
>> Am 06.02.15 um 16:31 schrieb Agnese, Marco:
>>> Hi, with the last pulls there is a bug in the file 
>>> scalarproducts.hh
> 
>>> dune-fem/dune/fem/function/common/scalarproducts.hh:126:40:
>>> error: no matching function for call to 
>>> ?Dune::GenericIterator<Dune::Fem::CommunicationIndexMap, 
>>> int>::GenericIterator(const IndexMapType&, int)? index);
> 
>>> due to the fact
> 
>>> /dune-common/dune/common/genericiterator.hh:198:5: note:   no
>>> known conversion for argument 1 from ?const IndexMapType {aka
>>> const Dune::Fem::CommunicationIndexMap}? to 
>>> ?Dune::GenericIterator<Dune::Fem::CommunicationIndexMap, 
>>> int>::Container& {aka Dune::Fem::CommunicationIndexMap&}?
> 
>>> I don't understand why since slaves_ is not const. Someone can
>>> look into it?
> 
>>> I attach the full error log.
> 
>>> Cheers, Marco.
> 
> 
> 
>>> _______________________________________________ dune-fem
>>> mailing list dune-fem at dune-project.org 
>>> http://lists.dune-project.org/mailman/listinfo/dune-fem
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 2 Date: Fri, 06 Feb 2015 21:09:27 +0100 From: Claus-Justus
> Heine <Claus-Justus.Heine at ians.uni-stuttgart.de> To:
> dune-fem at dune-project.org Subject: Re: [dune-fem] Bug in
> scalarproducts.hh due to Dune::GenericOperator Message-ID:
> <54D51F77.8050408 at ians.uni-stuttgart.de> Content-Type: text/plain;
> charset=utf-8
> 
> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
> 
> Think I got it. The problem was, that in a const method we can
> only construct a const-iterator with GenericIterator. Next problem
> was the signature of CommunifationIndexMap::operator[]() which
> returned an int, not a const-reference to an int (doesn't matter
> normally, but spoils the iterator-facades provided by Dune::Fem.
> 
> Marco, could you please check whether the latest commit fixes the
> error also on your side? Thanks.
> 
> Claus
> 
> Am 06.02.2015 um 20:23 schrieb Claus-Justus Heine:
>> Am 06.02.2015 um 19:00 schrieb Agnese, Marco:
>>> Hi Claus, I am using gcc version 4.8.2 (Ubuntu
>>> 4.8.2-19ubuntu1).
>> 
>>> Do you think id depends on the compiler?
>> 
>> No, actualally, on my way home I just realized that the
>> test-program I was using just die not test this very method.
>> 
>> I'll fix it, should not be too difficult.
>> 
>> Cheers,
>> 
>> Claus
>> 
>> 
>>> Cheers, Marco. ________________________________________ From:
>>> Claus-Justus Heine [Claus-Justus.Heine at IANS.Uni-Stuttgart.DE] 
>>> Sent: Friday, February 06, 2015 5:57 PM To: Agnese, Marco 
>>> Subject: Re: [dune-fem] Bug in scalarproducts.hh due to
>>> Dune::GenericOperator
>> 
>>> Hi Marco,
>> 
>>> well, I suppose its me who hosed things up. Which version of
>>> g++ are you using?
>> 
>>> Cheers,
>> 
>>> Claus
>> 
>>> Am 06.02.15 um 16:31 schrieb Agnese, Marco:
>>>> Hi, with the last pulls there is a bug in the file 
>>>> scalarproducts.hh
>> 
>>>> dune-fem/dune/fem/function/common/scalarproducts.hh:126:40:
>>>> error: no matching function for call to 
>>>> ?Dune::GenericIterator<Dune::Fem::CommunicationIndexMap, 
>>>> int>::GenericIterator(const IndexMapType&, int)? index);
>> 
>>>> due to the fact
>> 
>>>> /dune-common/dune/common/genericiterator.hh:198:5: note:   no
>>>> known conversion for argument 1 from ?const IndexMapType {aka
>>>> const Dune::Fem::CommunicationIndexMap}? to 
>>>> ?Dune::GenericIterator<Dune::Fem::CommunicationIndexMap, 
>>>> int>::Container& {aka Dune::Fem::CommunicationIndexMap&}?
>> 
>>>> I don't understand why since slaves_ is not const. Someone
>>>> can look into it?
>> 
>>>> I attach the full error log.
>> 
>>>> Cheers, Marco.
>> 
>> 
>> 
>>>> _______________________________________________ dune-fem
>>>> mailing list dune-fem at dune-project.org 
>>>> http://lists.dune-project.org/mailman/listinfo/dune-fem
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________ dune-fem mailing
>> list dune-fem at dune-project.org 
>> http://lists.dune-project.org/mailman/listinfo/dune-fem
>> 
> 
> - -- Dr. Claus-Justus Heine Institut f?r Angewandte Analysis und
> Simulation * Numerische Mathematik f?r H?chstleistungsrechner 
> Universit?t Stuttgart
> 
> Fon: +49 (0) 711 - 685 65558 Fax: +49 (0) 711 - 685 65507 
> -----BEGIN PGP SIGNATURE----- Version: GnuPG v2
> 
> iQIcBAEBAgAGBQJU1R93AAoJEAbZWiFWzP01dJgQAMmJE1kd4Lwtf4k53ANtTK+X 
> Hi0Z1gxPaESNgo4IREG/0cMvigODPdO7wJOyDAkWx0rujCxIacXPK8klgTvi3DuU 
> Izp+0Qrqv4zFHz3jbE4EvDduCmkeJjm1yLHJibKMTshk+FJhZ69Y475IYh6GsQrG 
> w+ILubPaayJ9JP4KKz8spO1KogYQkLVfv1A8HQzHSzkIk+i/l7JvkzvtYXupvWuf 
> E+Y7sQvLe9+m6i3GDVYCTrn6+sSJRHYhw73cIycTjIAxuZxPnHG/gA3EpGBxTu6I 
> XiI2SYbkZhbuFRFZg7QomvElk2gz2Xx6lkxVDUSQrBj64MYMmSuBI377FqnamkR4 
> toZRDs3r30kcC8qeKeGRGGVw+S2QLpbsb0vep55Gpk8oA7lohJYGf3H7+CsX3+03 
> DBCk+xD0RGK3vdVD8Scpn35481CsIkuX/z1lwkXeInbuHz21Tf2tvJwzdFtOdRK7 
> i4H2rBzsEdo8yJKblGuEa3qdmAC2X8RTlOb1YQe+sqcDfSydtTZdI+pNnAKN9Ozf 
> CyvpS9m6+794zDAQBUxQXr+Qb/16uOmD7GjOja2ZECmQzEAqEKsb1T84f9lXIP0q 
> 4/kwMjCDAEVEhCf7fZNxwNLOD/siqFKYCxH7l8zbWdxUuRJ8mSZueJtC3L5UQHWP 
> PGiXREKB8ZlmhyEf8B0q =cuQ+ -----END PGP SIGNATURE-----
> 
> 
> 
> ------------------------------
> 
> _______________________________________________ dune-fem mailing
> list dune-fem at dune-project.org 
> http://lists.dune-project.org/mailman/listinfo/dune-fem
> 
> 
> End of dune-fem Digest, Vol 35, Issue 3 
> ***************************************
> 
> _______________________________________________ dune-fem mailing
> list dune-fem at dune-project.org 
> http://lists.dune-project.org/mailman/listinfo/dune-fem
> 

- -- 
Dr. Claus-Justus Heine
Institut für Angewandte Analysis und Simulation
* Numerische Mathematik für Höchstleistungsrechner
Universität Stuttgart

Fon: +49 (0) 711 - 685 65558
Fax: +49 (0) 711 - 685 65507
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJU2JK9AAoJEAbZWiFWzP015OEP/0B/G2jxFDitj07ogzBaACrA
caCg5SdB0EHU+cINqRWQQY8/fDhsEcIC9eS7jPI7PC1yRPEh1iuK1kJvfFK2vpRi
z9EY31SX7rUciwo5VawNXpl9WNbht3PzR5HpZeR/QBgyDdWGWSH8QZfDHsocf12q
vBU//2TTCkYQJ0KZlh+dl4lCvpNyMhMJ/203bI3fNQDzWpoKuz8jZpy/xlAJcRuC
uUILxo+DQyKyFtrSN05+woIn0BHuQNJ9KfvAHR4nq+VxYTy1E9YELT+dUgG36Kay
8uHLBdI4tQ5VeSmXOOoUIYXYBSXDIy/lCkJs2vByU9+zS1pKKE2RUGRzwEpoQy2m
BvICI07rQZQGDMSq1z15csr+Hhth2ysOzWadV1Zwc/AgfVpqNwqm1pykG5rsWlyv
32ZvaUu/2Lk9oNu3b4CnoSn7B+Otv9nc0rP+GKXY6QxiMAYjm/xEuqYOitQE1aDd
eAwfOMYTi0Fio0qdsF9jMibSxN/inJH2ckAjUGQQZttb2qUon3xpybBbhhk3H5Ni
r/mDxdubpKOff/pP3v8/tBaixS7EMdGrwDELSVUVb+77efXRoO+MUgVdOZT6M/p9
yHxDx767mC+fp43Eq8z5vgy+fBOjL9LRbUfIQd3HZwA4N7FqaA6/ALdMMI/vNIIU
EmiRuKNFRkAj8QTu1UW2
=tiXo
-----END PGP SIGNATURE-----




More information about the dune-fem mailing list