- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I am passing to my subroutine a 3D matrix (0:8, 40, 40), etc, the program works correctly. But when I am passing matrix (0:10, 59, 59), or higher number of elements, it causes stack overflow error. Are there any constrains on the number of matrix elements in CFV? Thanks!
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, but the default stacksize is limited and the compiler may create array temporaries on the stack. See the on-disk documentation index under "stack, setting size of" for information on how to increase this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you're running into the default stack limit, use the corresponding Windows link option
/link /stack:nnnnnnnnn
until your stack fills up the available space for your OS. There's about 200MB more in Windows 2000 SP4 than in Windows XP SP2. Some installed applications eat into it. Steve has written comprehensive articles on this link option, which may be part of his project to resurrect his Fortran reference site.
/link /stack:nnnnnnnnn
until your stack fills up the available space for your OS. There's about 200MB more in Windows 2000 SP4 than in Windows XP SP2. Some installed applications eat into it. Steve has written comprehensive articles on this link option, which may be part of his project to resurrect his Fortran reference site.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Isee. Thank you
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page