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

Re: 20010608: segmentation fault in netcdf_red.f on a dec alpha

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: Re: 20010608: segmentation fault in netcdf_red.f on a dec alpha
  • Date: Fri, 08 Jun 2001 09:28:10 -0600

>To: address@hidden
>From: Grant Bigg <address@hidden>
>Subject: segmentation fault in netcdf_red.f on a dec alpha
>Organization: University of East Anglia
>Keywords: 200106081331.f58DVKp26485 netCDF UDUNITS

Hi Grant,

> I've been trying to read NCEP reanalysis data using the netcdf_red.f
> programme on a dec alpha but get a segmentation error in gridread:
> 
> signal segmentation fault at >*[utIsTime, 0x12003c880] ldq  t1, -4(a0)
> 
> This seems to be associated with the udunits.inc file and setting up the
> PTR variable. Could you tell me how this should be done on alphas
> please?

I don't know anything about netcdf_red.f, so if the error is related
to that code, you'll have to contact the author.

If you're right and the problem is with the type of the PTR variable
in udunits.inc, it should be defined to be a Fortran type that will
hold 64 bits for the Alpha, something like "integer*8":

#ifndef PTR
#   define PTR  integer*8
#endif

I'm also CC:ing Steve Emmerson, the author of udunits.inc, in case he
has additional suggestions.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu