Silverfrost Forums

Welcome to our forums

Stack Overflow: Re-link program with bigger stack value.

27 Oct 2018 4:35 #22713

Hi,

I'm interested in large matrix in FTN95 Plato. When i work with matmul(a,b), I take error below. Could you help me?

array a(8000,8000) array b(8000,8000)

Thank you in advance.

Salford run-time library. Stack Overflow: Re-link program with bigger stack value. (stack:reserve,commmit) .Will attempt to trace back

29 Oct 2018 9:29 #22716

This easiest way might be for you to use ALLOCATABLE arrays as in the example below. Alternatively you can create a Plato project and use the project settings to change the stack size in the linker options.

Subroutine sub()
real,allocatable::a(:,:) 
real,allocatable::b(:,:)
allocate(a(8000,8000))
allocate(b(8000,8000))
a = 42
print*, a(8000,8000)
end

program main
call sub()
end
3 Nov 2018 8:01 #22735

Thank you.

Please login to reply.