[Dune-devel] dune-common update seems to cause error in my ParMetis routine
Aleksejs Fomins
aleksejs.fomins at lspr.ch
Tue Jan 26 14:41:21 CET 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey Jö,
I noticed it as well just now. I have to rewrite a lot, but hopefully that will improve the resistance of the code to future bugs.
Thanks a lot!
Aleksejs
On 26.01.2016 14:13, Jö Fahlke wrote:
> Am Tue, 26. Jan 2016, 11:56:05 +0100 schrieb Aleksejs Fomins:
>> Date: Tue, 26 Jan 2016 11:56:05 +0100
>> From: Aleksejs Fomins <aleksejs.fomins at lspr.ch>
>> To: "dune-devel at dune-project.org" <dune-devel at dune-project.org>
>> Subject: Re: [Dune-devel] dune-common update seems to cause error in my
>> ParMetis routine
>> X-No-Auth: unauthenticated sender
>> X-No-Relay: not in my network
>> X-Spam-Flag: NO
>> X-Spam-Score: -1
>> X-Enigmail-Draft-Status: N1110
>> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
>> Thunderbird/38.4.0
>> X-Spam-Check-Skipped: Message too large - 1864 kB
>>
>> Hey Jö,
>>
>> Thanks for your suggestion. I have tried to do as you say, and I attach the preprocessor output.
>>
>> If you search the text for "real_t", you find it is defined once in metis.h
>>
>> /opt/extlib/parmetis/4.0.3/openmpi/1.10.0/gcc/5.2.0/include/metis.h:120:17
>> typedef float real_t;
>>
>> and once in Dune typetraits
>>
>> /home/fomins/gitwork/hades-lspr-ag/dune-common/dune/common/typetraits.hh:565:55
>> using real_t = typename FieldTraits<Type>::real_type;
>>
>> I am not sure if I am reading the preprocessor output correctly, but, as far as I can tell, the typetraits definition is inside namespace Dune and metis definition is not inside any namespace. And yet the compiler complains about ambiguous definition of real_t when reading metis.h.
>
> Hi!
>
> The problem is a
>
> using namespace Dune;
>
> in global scope. See near line 55
> of "/home/fomins/gitwork/hades-lspr-ag/hades/basisfunctions/htvfe.hh" (and
> there may be more instances). Shame on whoever put that into a header file
> ;).
>
> Regards,
> Jö.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJWp3d6AAoJEDkNM7UOEwMZhpoQAKz05T6uTZLtH40Os9VgYZcl
Hl+2i39YCRJX7Uk2vlgmbrHxgLNTHh880TPNElPTq857aJy88Ip9YoidogWSmPfI
QwOXcx1g4pCrLapmzypae4n9D6FlJbwlWpNcCPRrU29rjaD0xU+ACorC7RTzj8jK
mH5yWCY9ADOkUngq2C+vELrjxhSCwuSIUTrON2hKF9XtG5G4AlgckKwxPt3UH/zs
PjW8+AA0JeRQETRRb/M6dDEkWyRcHRZsexxx5hnXlLVLe9li+qmo0snu3Tvaxpm+
GEapgO4HT0T9i19OqYo92OWgGC9opMIltvLz3uTj6TqZ6g6sejbWI5+v+8FzcmmV
vh512ZzDNxlVF+FrFjjZVmHRJ2Z8DrUokIczOz/i9OtGpLfotXSerfpAfyxWa3T5
XHRa0vHTmOONvGvGPqxhyhyiWCZqXypwDPnm6i0nJTJ7OQuMrXtmnnquZhzv8WVW
kec4X8dEY2bir/4svOjAEByn8+XlsTccUBzcqaIJUHWg7mZFLp7IHExQFIRv5ALb
64HyNFg+KSNoFO6C7UpEwmpq3DC3Yj8HMUgrs7pzdpb/zYezRG8m0Kv8Hb+beNUr
5kU6yhgzhXvvth8/i8O+3y/RXRvm3JFS/RJwmZltnr719gHAthdZ5BxP/dSx1uOP
Xdp/jDy0A/8f/VvaYVnq
=+nsb
-----END PGP SIGNATURE-----
More information about the Dune-devel
mailing list