Re: NclMalloc Failed

From: H.Dang <danghy_at_nyahnyahspammersnyahnyah>
Date: Tue Jan 18 2011 - 14:08:24 MST

Hi Dennis,

Thanks! That's exactly the reason. It works when I switch to a node with 48G
memory!

Thanks again.
Hongyan
On Tue, Jan 18, 2011 at 3:01 PM, Dennis Shea <shea@ucar.edu> wrote:

> I speculate that you don't have enough memory
> on the machine you are using.
>
> Say you gave 2GB, then if the total for
> 6 variables is 1.8GB [300MB per variable],
> then adding 2 more variables would result in an
> NclMalloc error.
>
>
>
>
> On 1/18/11 11:22 AM, H.Dang wrote:
>
>> Hi dear all,
>>
>> I need to read 8 variables from one nc file. But the NCL shows the
>> following error:
>>
>> fatal:NclMalloc Failed:[errno=12]
>> ncl: putget.c:3705: getNCvx_float_float: Assertion `value != ((void
>> *)0)' failed.
>> Aborted
>>
>> The code works when less than 6 variables are read at the same time. My
>> trial code is simply like:
>>
>> 1 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
>> 2 load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
>> 3 begin
>> 4
>> 5 ;*******************************************
>> 6 ; open file and read in data
>> 7 ;*******************************************
>> 8 f1 = addfile ("brosto2/WT100ppb69hr/cctm_wt100.nc
>> <http://cctm_wt100.nc>", "r")
>>
>> 9 P_par = f1->PAR
>> 10 P_ole = f1->OLE
>> 11 P_eth = f1->ETH
>> 12 P_ald2 = f1->ALD2
>> 13 P_tol = f1->TOL
>> 14 ; P_xyl = f1->XYL
>> 15 ; P_isop = f1->ISOP
>> 16 ; P_form = f1->FORM
>> 17
>> 18 end
>>
>> Could anybody please tell me how to fix this problem? Thank you!
>>
>> --
>> Cordially,
>> Hongyan(ΊθΡγ)
>> Tel: 1-519-8884567ext36667
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>

-- 
Cordially,
Hongyan(ΊθΡγ)
Tel: 1-519-8884567ext36667

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jan 18 14:08:57 2011

This archive was generated by hypermail 2.1.8 : Tue Jan 25 2011 - 14:22:15 MST