[MITgcm-devel] testreports broken on SunOS

Martin Losch mlosch at awi-bremerhaven.de
Mon Jan 31 07:36:28 EST 2005


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

 





More information about the MITgcm-devel mailing list