I encounter with a problem when I am trying to initialize a large size zero arrays (x(2, 2800, 1600000)). I make it an allocatable array but still the segmentation fault message appears.
Here is my code:
program test integer(kind=1), allocatable :: x(:, :, :) allocate(x(2, 2800, 1600000)) x = 0_1 end program
ulimit -s unlimited but it didn’t work. I am working on a workstation and I suppose it should have larger memory than 8.34GB. Could anyone help with this?