[dune-fem] Bug in scalarproducts.hh due to Dune::GenericOperator
Agnese, Marco
m.agnese13 at imperial.ac.uk
Mon Feb 9 11:19:26 CET 2015
Dear Claus,
now everything works. Thank you for the quick fix.
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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
>
>
>
>
- --
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
iQIcBAEBAgAGBQJU1RSsAAoJEAbZWiFWzP01zlkQAN6QhTRc/UMgn4X8Vv7a9IuN
KFJcZFXW2GMrew9U+RdbeUnUpQBf3KwRWPGBi4wsqnSNy827xWBlqLxF9Z6AXpPW
eH8CTAVc7A4PtyksNLiClYKiX2GWBD8xjp03FH/bZHhMX4VdNhrFBCAbNZf0q/bH
UkB+4E37/rVlH6AXrNIJnJvKl5UkdHSA6uWnZVWFIsg2eew4ElDMSZn0AmvmedpW
ZxDm9zcf5o+BGAEqEG3FlxeIG06zOTpYs2o9jOoNPvJVJ8VoW5N1hOK25exK3v1M
EbnJlDVrDVBGxxPuVPd2fHeU6CpNGzHMBCfntIvp7phUQ4LvaoMu6LGEUkSEP6CV
XUT1uoDIedVk8gVs/fGzuNfHwZIbPM/ckHDweS0hlIjDIH1Yzxvbje0gwGNhlKwO
9WmDkdNEv5kdcDy1SaVEKO5VRGuKito4waDc+htb3xxJITZWTaRpMPF4JP4btOBp
AmEQeGyD8HHrXfnK+kNOxtaS0ffAoeRXkK1o2sPrtorhXiH6zIc0Vq+TqkqSyFdJ
poY+xBQu1l1CageceLjVk6QG1TyGUstN/tdqIfH2FeL/JYBOcdrgBTjBCsUf+VaB
wn9li+N6Ncke6BnBz0y8n+JGnGQLx9yvz5Ei596QuLv5Q9dx9SJQA5ZANfeE2Vxy
FVxiQ1GimeLVDxV9oKSi
=TxCM
-----END PGP SIGNATURE-----
------------------------------
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
***************************************
More information about the dune-fem
mailing list