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

Claus-Justus Heine Claus-Justus.Heine at ians.uni-stuttgart.de
Fri Feb 6 21:09:27 CET 2015


-----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-----




More information about the dune-fem mailing list