[MITgcm-devel] macros and "()"

Martin Losch Martin.Losch at awi.de
Mon Jan 6 08:35:29 EST 2014


Hi there,
I haven’t run testreport on my apple Powerbook for a while. Now the aim and streamice experiments do not compile because lines like these:
      _END_MASTER ( myThid )     (in aim_initialise.F)
or 
      _EXCH_XY_RL (H_streamice,myThid)        (in streamice_advect_thickness.F)

are not understood by my cpp processor:
/usr/bin/cpp -v
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.9.0 -E -disable-free -disable-llvm-verifier -main-file-name - -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 224.1 -v -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0 -I /usr/include -fdebug-compilation-dir /Users/mlosch/head/verification/aim.5l_Equatorial_Channel/build -ferror-limit 19 -fmessage-length 140 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.9.0 -fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties -fencode-extended-block-signature -fdiagnostics-show-option -fcolor-diagnostics -traditional-cpp -o - -x c -
clang -cc1 version 5.0 based upon LLVM 3.3svn default target x86_64-apple-darwin13.0.0

I am going to remove the “ “ between the end of the macro and the “(“ if that’s OK with you.

Martin





More information about the MITgcm-devel mailing list