Stack overflow, heap:arrays and Fortran array functions

Thanks! So instead of /heap-arrays0 I should increase the size of the stack? How can I modify the compilation instructions shown above to do that?