[ncl-talk] low memory algorithm for sorting ? how large is INT_MAX ?

Kevin Hallock hallock at ucar.edu
Fri Oct 20 16:17:10 MDT 2017


Hi Adam,

Could you please copy and paste the full error message you’re seeing?

Also, would you mind sharing a copy of your script? It might help diagnose the issue.

Thanks,
Kevin

> On Oct 20, 2017, at 3:49 PM, Adam Herrington <adam.herrington at stonybrook.edu> wrote:
> 
> I am trying to sort with the function 'dim_pqsort', but my array is too large. I get an error saying that 1 or more dimensions is larger than INT_MAX.
> 
> If anyone has a solution to this problem, I'm all ears.
> 
> My thinking is that I can create an array of sample indices through 'generate_sample_indices', and make the number of sample indices = INT_MAX. Does anyone know how large INT_MAX is ?
> 
> Adam Herrington
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk



More information about the ncl-talk mailing list