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 #RSQ-889375]: Installation Problems



Chris,

> Timeindex is a subroutine (several layers down from the main read
> routine) I got from the web site to read the netcdf files using fortran.
> The example read routines are in file readgeneral.f. This is the exact
> file I got from the web site. I stripped off all the subroutines and put
> them in the file called readutils.f, which I link to my driver routine.
> The only changes I made to readutils.f was changes to directory paths to
> include files, etc. It runs perfectly on 32-bit but crashes on 64-bit.

I'm not anywhere close to a "readgeneral.f" expert (so you might have
to contact the owners of that file) but I suspect that the problem is
statements like this


      integer*4 unitptr

in the file "readutils.f".  I suspect that one has to use 8-byte
integers in order to hold the pointer-to-unit-structures returned
by the UDUNITS package, i.e., the above statement should, instead,
be

      integer*8 unitptr

You might try that.

> ------------------------------------------------------------------------
> Dr. Christopher J. Mertens
> Senior Research Scientist
> NASA Langley Research Center
> Science Directorate, Chemistry and Dynamics Branch
> 21 Langley Blvd., Mail Stop 401B
> Hampton, Virginia 23681-2199 USA
> Voice: +1-757-864-2179
> Fax: +1-757-864-6326
> Email: Christopher.J.Mertens@xxxxxxxx
> ------------------------------------------------------------------------

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: RSQ-889375
Department: Support UDUNITS
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of 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