[MITgcm-devel] testreports broken on SunOS

Martin Losch mlosch at awi-bremerhaven.de
Mon Jan 31 10:09:51 EST 2005


In case it matters:
rint instead of lrint seems to work.

Martin

On Jan 31, 2005, at 3:18 PM, chris hill wrote:

> Hi Martin,
>
>  Can you try "rint" instead of lrint and see what happens.
>
> Thanks,
>
> Chris
> Martin Losch wrote:
>> Hi there,
>> I noticed that testreport doesn't run on Sun anymore since the 
>> changes on Jan25 (Revision 1.62). The critical line is:
>>        if (relerr > 0.0) { linnum = (int)log10(relerr); }
>> was replaced by
>>        if (relerr > 0.0) { linnum = (int)lrint(log10(relerr)); }
>> Now I get an error message about lrint:
>>> model::verification> ./testreport -of 
>>> ../tools/build_options/sunos_sun4u_f77+mpi_sunfire
>>> parsing options...  OK
>>> creating the comparison code...  "tmp_cmpnum.c", line 15: warning: 
>>> implicit function declaration: lrint
>>> Undefined                       first referenced
>>>  symbol                             in file
>>> lrint                               tmp_cmpnum.o
>>> ld: fatal: Symbol referencing errors. No output written to tmp_cmpnum
>>>
>>> ERROR: failed to compile comparison code -- please specify
>>>   a C compiler using the CC environment variable.
>> what does this lrint do and why do we need it now?
>> Martin
>>  _______________________________________________
>> MITgcm-devel mailing list
>> MITgcm-devel at mitgcm.org
>> http://dev.mitgcm.org/mailman/listinfo/mitgcm-devel
>
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-devel




More information about the MITgcm-devel mailing list