I am trying to allocate an real array finn_var(459,299,27,24,nspec) in Fortran. nspec = 24 works ok, while nspec = 25 not. No error message for allocation process, but print
Your problem is most likely a memory issue.
You array demands 459*299*27*24 * 4B
per nspec
(assuming default real
requires 4B
of memory). For nspec == 24
this results in a memory requirement of approximately 7.95GiB
, while nspec == 25
needs around 8.28GiB
.
I guess, your physical memory is limited to 8GiB
or some ulimit
limits the amount of allowed memory for this process.