[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20010608: segmentation fault in netcdf_red.f on a dec alpha
- Subject: Re: 20010608: segmentation fault in netcdf_red.f on a dec alpha
- Date: Fri, 08 Jun 2001 09:47:53 -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
Grant,
> thanks for your suggestion. I have been having problems
> getting the f77 compiler to recognise the # statements. Do
> you know if there is likely to be a compiler option I am
> missing? Currently I'm using
>
> f77 -B -P -K -I./include <filename>.f
> f77 -lnetcdf -ludunits <filename>.i
>
> with the #ifndef PTR + following 2 lines commented out.
Try the -cpp option.
--Russ
> On Fri, 08 Jun 2001 09:28:10 -0600 Russ Rew
> <address@hidden> wrote:
>
> > >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
>
> -----------------------
> Dr. Grant R. Bigg
> School of Environmental Sciences, Phone: (0)1603 592558 Fax: (0)1603 507719
> University of East Anglia, E-mail: address@hidden
> Norwich NR4 7TJ U.K. Web-site: http://www.uea.ac.uk/~e930/wwwgrb.html