Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UDUNITS #NDS-204592]: udunits(3): syntax error:



Daniel,

> I am using ifort on a Ubuntu 8.04 LTS system. I compiled udunits-1.12.9
> successfully, but am getting the following error during run time.
> ---
> udunits(3): syntax error:
> 0.01
> ^
> udunits(3): Couldn't decode "percent" definition "0.01"
> udunits(3): Error occurred at line 34
> udunits(3): Couldn't read units-file "/var/local/udunits/etc/udunits.dat"
> udunits(3): Package hasn't been initialized
> Error in udunits function: UTDEC
> Udunits package has not been initialized
> 
> NOTE: You must call netop_init to use gridread,
> gridreadx, dayread, and dayreadx
> ---
> I have attached the udunits that is on the system. I did compare this to
> the one from
> 
> http://www.unidata.ucar.edu/software/udunits/udunits-1/udunits.txt
> 
> and they are identical. I just upgraded to Ubuntu/ ifort from mandrake/
> pgi compilers where this code I am trying to run worked very well. Does
> this error have anything to do with the ifort compiler?

The problem is, very likely, caused by the change in Fortran compilers.  Did 
you compile the UDUNITS package on the Ubuntu 8.04 system with the C macro 
"pgiFortran" defined?

> Thanks very much for your help,
> 
> Daniel.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: NDS-204592
Department: Support UDUNITS
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690