[Users] Mojave|Simfactory|Fortran(thorn): F90 compiler rejecting "_##" in var names
Scott Hawley
scott.hawley at belmont.edu
Fri Dec 20 00:58:23 CST 2013
Aha! That's the missing piece.
Also, FWIW, apparently in Apple's latest OS "Mavericks", cpp does not support macro concatenation via ## like the true GNU compilers do. (I tested this; I copied and pasted example source from the GNU manual.) Furthermore it ignores the "--traditional" flag, i.e. generates no warning or error if you supply the flag, but it has no effect on the behavior.
So! Problem solved. The fix is to specify FPP= in the options file with the --traditional flag, using a true GNU compiler such as from MacPorts. No modifications to cctk_Types.h is necessary.
Thanks Roland!
-Scott
> On Dec 20, 2013, at 12:28 AM, "Roland Haas" <roland.haas at physics.gatech.edu> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello Scott,
>
>> Since many thorns in Cactus have multi-line equations, I'm not
>> sure if using the cpp.pl script is an option for me.---Have other
>> people not reported this problem?
> Uhm, I think I should have given a slightly different suggestion re
> cpp. Please try "cpp --traditional" for FPP. The behaviour that you
> observed (turning the comment into a space when using /**/ ) is the
> ANSI C behaviour ( the standard requires this) while what we want is
> what pre-ANSI compilers used to do (remove comments without trace).
>
> a ## b
>
> should be turned into
>
> ab
>
> as the ANSI standard requires that whitespace surrounding ## is
> removed. Not sure why this does not happen, but FPP=cpp --traditional
> should do the trick (and is in fact the setting that you will find in
> simfactory's option lists, if not please report the file, it is a bug).
>
> Yours,
> Roland
>
> - --
> My email is as private as my paper mail. I therefore support encrypting
> and signing email messages. Get my PGP key from http://keys.gnupg.net.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.15 (GNU/Linux)
> Comment: Using GnuPG with Icedove - http://www.enigmail.net/
>
> iEYEARECAAYFAlKz45gACgkQTiFSTN7SboXDngCfaN5A8y1OyNHyn1dv/HmT+W0A
> vdcAn0/86+A7UeSnYbOI6589gSc7dSF1
> =Lk+p
> -----END PGP SIGNATURE-----
> _______________________________________________
> Users mailing list
> Users at einsteintoolkit.org
> http://lists.einsteintoolkit.org/mailman/listinfo/users
More information about the Users
mailing list