About allocate

I have a question about allocate. Could it be used for higher dimension arrays.
E.g. allocate(A(dimx,dimy,dimz,dimu,dimv,dimw))
I mean, is there a dimensionality limit for allocate. I seem to have problem with using it for high dimensional array. I could compile my code but when I ran it I met the following messages.
[chimera08:24080] *** Process received signal ***
[chimera08:24080] Signal: Segmentation fault (11)
[chimera08:24080] Signal code: Address not mapped (1)
[chimera08:24080] Failing at address: (nil)
[chimera08:24080] *** End of error message ***


Hi soniccrazy,

The max number of dimensions is 7 so you should be fine. If the total size of the array is greater then 2GB, try adding the flag “-Mlarge_arrays” to see if it helps. If not, then you’ll need to run your program in the debugger (PGDBG) to see where and why the seg fault occurs.

  • Mat