forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
Semih



Joined: 30 Apr 2018
Posts: 8

PostPosted: Sat Oct 27, 2018 5:35 pm    Post subject: Stack Overflow: Re-link program with bigger stack value. Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7912
Location: Salford, UK

PostPosted: Mon Oct 29, 2018 10:29 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Semih



Joined: 30 Apr 2018
Posts: 8

PostPosted: Sat Nov 03, 2018 9:01 pm    Post subject: Reply with quote

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group