This has come up before.
I speculate that "DUSTND" is > 2GB. That is the maximum
that NCL's 32-bit addressing allows.
The malloc is try to get size=2371719168 ... not allowed.
---
Try
total1 = dim_sum_n_Wrap(fout->DUSTND(:,99,:,:),2)
printVarSummary(total1)
totalN = total1(:,{116.96},{39.75})
Lin Su wrote:
> Dear NCL users,
>
> I am plotting 16 size bins volume size distribution, which is radius(size bins) dependent. I believe the data reading part and plotting part are correct. However, the error probably comes from the following statements:
> *********************
> ...
> total1 = dim_sum_n_Wrap(fout->DUSTND,2) ;Sum up all levels
> totalN = total1(:,99,{116.96},{39.75}) ;Xianghe for 16 bins
> ...
> ***********
> Are these the correct statements?
>
> The error is as following:
> ********************
> ncl(15845) malloc: *** vm_allocate(size=2371719168) failed (error code=3)
> ncl(15845) malloc: *** error: can't allocate region
> ncl(15845) malloc: *** set a breakpoint in szone_error to debug
> fatal:NclMalloc Failed:[errno=12]
> putget.c:3691: failed assertion `value != NULL'
> Abort
> *****************
>
> Also, attached please find the NCL code.
>
> Many thanks,
> -Lin
> ---
> Lin Su
> http://atoc.colorado.edu/~sul/
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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 Fri Nov 20 20:22:14 2009
This archive was generated by hypermail 2.1.8 : Mon Nov 23 2009 - 12:24:02 MST