Re: Segmentation fault (core dumped).

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jun 07 2010 - 08:43:59 MDT

Please add:

  printVarSummary(rf)

after you read in pr and let us know what the size of the variable is.

Also, do the same for other variables, like "time".

Thanks,

--Mary

On Jun 6, 2010, at 10:15 PM, Sabeerali(sebi) wrote:

>
> Dear Dennis,
>
> Thanks for your reply..I don't think my variable size is more than 2GB. Also I am not using any reordering and more recent *_n_Wrap function.. The script is given below..You can go through...
> Thanks again...
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl"
> begin
>
> in2=addfile("/home/sabeer/AR4_20c3m/ncar_csm/pr_A2.nc","r")
> rf=in2->pr ; daily data from 1950 to 1999
>
> time=in2->time
> TIME = ut_calendar(time, 0)
> year = floattointeger( TIME(:,0) )
> month = floattointeger( TIME(:,1) )
> day = floattointeger( TIME(:,2) )
> ddd = day_of_year(year, month, day)
> yyyyddd = year*1000 + ddd
>
> rf_clim=clmDayTLL(rf,yyyyddd)
> smth_rf_clim=smthClmDayTLL(rf_clim,3)
> rf_anom=calcDayAnomTLL(rf,yyyyddd,smth_rf_clim)
>
> spd=1
> bpf=(/20,100,201/)
> rfa_f=band_pass_latlon_time (rf_anom,spd, bpf,False)
> ;================saving to netcdf==============================
> diro ="./"
> filo = "dly.rfa.filt.nc"
> system("/bin/rm -f "+diro+filo)
> f = addfile(diro+filo, "c")
> f->rfa_filt =rfa_f
> end
>
>
>
> On 6 June 2010 23:30, <ncl-talk-request@ucar.edu> wrote:
> Send ncl-talk mailing list submissions to
> ncl-talk@ucar.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> or, via email, send a message with subject or body 'help' to
> ncl-talk-request@ucar.edu
>
> You can reach the person managing the list at
> ncl-talk-owner@ucar.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ncl-talk digest..."
>
>
> Today's Topics:
>
> 1. Segmentation fault (core dumped). (Sabeerali(sebi))
> 2. Re: Segmentation fault (core dumped). (Dennis Shea)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 6 Jun 2010 13:51:30 +0530
> From: "Sabeerali(sebi)" <sabeerl@gmail.com>
> Subject: Segmentation fault (core dumped).
> To: ncl-talk@ucar.edu
> Message-ID:
> <AANLkTil5IaeeJ7kX-8cTVGmse970Y89-elbqxZDPwA5j@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I am having the daily data of 60 years...I am not able to do any calculation
> by using this large data set in NCL. ...It shows segmentation fault (core
> dumped).. I think it is because that I encountered memory limit..Actually I
> want to the band pass filter..It works nicely if I reduce size of data set
> (means for 30 years daily) . Is there any solution if I encounter the memory
> limit?
>
> Thanks for your time..
>
> --
> **********************************
> Sabeerali
> Climate and Global Modeling Division
> Indian Institute of Tropical Meteorology
> Pashan, Pune, 411 008
> ****************************************
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20100606/6addf6e9/attachment.html
>
> ------------------------------
>
> Message: 2
> Date: Sun, 06 Jun 2010 08:33:44 -0600
> From: Dennis Shea <shea@ucar.edu>
> Subject: Re: Segmentation fault (core dumped).
> To: "Sabeerali(sebi)" <sabeerl@gmail.com>
> Cc: ncl-talk@ucar.edu
> Message-ID: <4C0BB1C8.6010900@ucar.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> If you are using more memory than is available on your machine,
> the answer is "no".
>
> [1] Is the variable size > 2GB? Currently, NCL does not allow
> variables to be > 2GB.
>
> [2] Are you using functions that require "dimension reordering"
> or, the more recent *_n [ *_n_Wrap] function that do not.
>
> D
>
>
>
> On 6/6/10 2:21 AM, Sabeerali(sebi) wrote:
> > I am having the daily data of 60 years...I am not able to do any
> > calculation by using this large data set in NCL. ...It shows
> > segmentation fault (core dumped).. I think it is because that I
> > encountered memory limit..Actually I want to the band pass filter..It
> > works nicely if I reduce size of data set (means for 30 years daily) .
> > Is there any solution if I encounter the memory limit?
> >
> > Thanks for your time..
> >
> > --
> > **********************************
> > Sabeerali
> > Climate and Global Modeling Division
> > Indian Institute of Tropical Meteorology
> > Pashan, Pune, 411 008
> > ****************************************
> >
> >
> >
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> ------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> End of ncl-talk Digest, Vol 79, Issue 10
> ****************************************
>
>
>
> --
> **********************************
> Sabeerali
> Climate and Global Modeling Division
> Indian Institute of Tropical Meteorology
> Pashan, Pune, 411 008
> ****************************************
>
>
>
> --
> **********************************
> Sabeerali
> Climate and Global Modeling Division
> Indian Institute of Tropical Meteorology
> Pashan, Pune, 411 008
> ****************************************
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jun 7 08:44:06 2010

This archive was generated by hypermail 2.1.8 : Mon Jun 07 2010 - 16:48:44 MDT