[MITgcm-support] G95 build issue: f2c name mangling
chris hill
cnh at mit.edu
Mon Oct 9 08:26:06 EDT 2006
Mark,
Can you try changing
system_time ==> systemtime
user_time ==> usertime
in timers.F and timer_stats.c.
If I understood Ed correctly that should make the gnu linker happy. If
it seems to work for you we can try and change it permanently - it
shouldn't break anything else.
Thanks,
Chris
Mark Hadfield wrote:
> Thanks for your reply, Ed.
>
> I agree that's irritating to have to go to so much trouble for a few
> function calls that have no bearing on the results. Still, the time info
> is moderately interesting.
>
> I've discovered the reason for the inconsistency between g77 and g95
> (the bit that was really bugging me). With the combination of
> preprocessor symbols that applies on g77 and g95, the functions
> system_time, user_time and timenow are declared but never called. G95
> writes their names to the object file with the "U" (undefined) flag, but
> g77 omits them. If I add a call to the system_time and user_time
> functions, then g77 fails in the same way as g95. It's arguable which is
> the more correct and user-friendly behaviour, but basically it's an
> error in the code.
>
More information about the MITgcm-support
mailing list