[gradsusr] Segmentation fault in GrADS V2.0.a4

Marcelino II Villafuerte mqvillafuerte at gmail.com
Tue May 4 07:04:59 EDT 2010


Dear Gibies,

Thank you very much for your immediate response! More power to you!

Mar


On Tue, May 4, 2010 at 6:49 PM, gibies george <gibiesgeorge at gmail.com>wrote:

> Hello Mar,
>
> Don't forget to undefine the variables after its use.
>
>
> On 4 May 2010 16:17, gibies george <gibiesgeorge at gmail.com> wrote:
>
>> Hello Mar,
>>
>> The segmentation error is due to the overflow of allotted memory
>> Here you are using 30 variable p61, p62, ........p90 simultaniousely. You
>> can avoid the problem by using a loop
>>
>> ......
>> ......
>> ......
>> yyyy=1961
>> define sum_p = .....
>> while(yyyy<1990)
>> .....
>> .....
>> define p_n = ......
>> sum_p= sum_p + p_n
>> .....
>> .....
>> yyyy=yyyy+1
>> endwhile
>>
>> define pave=sum_p/30
>>
>> ........
>> ........
>> .........
>>
>>
>>
>> On 4 May 2010 12:26, Marcelino II Villafuerte <mqvillafuerte at gmail.com>wrote:
>>
>>>
>>>
>>> ---------- Forwarded message ----------
>>> From: Marcelino II Villafuerte <mqvillafuerte at gmail.com>
>>> Date: Tue, May 4, 2010 at 2:50 PM
>>> Subject: Segmentation fault in GrADS V2.0.a4
>>> To: GRADSUSR at list.cineca.it
>>>
>>>
>>> Dear GrADS Users,
>>>
>>> I'm using this attached script to obtain a seasonal average (JJAS) of
>>> Rainfall from APHRODITE high resolution daily rainfall gridded dataset.
>>> It works with the older version (V1.8) but when i try it in Grads V2.0.a4
>>> an error occurred "segmentation fault". The advantage of using
>>> the later version is, it was able to write an output to NetCDF format
>>> that's why I tried to switch into this version. Is defining a lot of
>>> variables
>>> its limitation?
>>>
>>> Has anyone encountered similar problem? I need your help...
>>>
>>> Thanks in advance!
>>>
>>> Mar
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>
>>
>> --
>> Gibies George,CSIR-RF,
>> Climate and Global Modelling Division,
>> Indian Institute of Tropical Meteorology,
>> Dr. Homi Bhabha Road,
>> NCL (P. O.), Pashan,
>> Pune 411008
>>
>> http://sites.google.com/site/gibiesge/
>>
>>
>
>
> --
> Gibies George,CSIR-RF,
> Climate and Global Modelling Division,
> Indian Institute of Tropical Meteorology,
> Dr. Homi Bhabha Road,
> NCL (P. O.), Pashan,
> Pune 411008
>
> http://sites.google.com/site/gibiesge/
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/85bcd9e2/attachment-0003.html 


More information about the gradsusr mailing list