View previous topic :: View next topic |
Author |
Message |
Semih
Joined: 30 Apr 2018 Posts: 8
|
Posted: Sat Oct 27, 2018 5:35 pm Post subject: Stack Overflow: Re-link program with bigger stack value. |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8011 Location: Salford, UK
|
Posted: Mon Oct 29, 2018 10:29 am Post subject: |
|
|
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.
Code: | 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 |
|
|
Back to top |
|
|
Semih
Joined: 30 Apr 2018 Posts: 8
|
Posted: Sat Nov 03, 2018 9:01 pm Post subject: |
|
|
Thank you. |
|
Back to top |
|
|
|