- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm updating and old code. There is currently alimit of 970 in the size of the arrays it reads from and writes to and I want to change it to 1020. I thought it was straightforward thing to do (replace 970 by 1020), but when I do thatI get a message saying:
forrtl: severe (157): Program Exception - access violation
I guess I need to change something else, but I know very little about programming. Can anybody help, please?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
First thing to check is that _every_ 970 was changed to 1020
The usual causes of this kind of errorare :
a subscript out of range
a call to a subroutine has an argument mismatch
using a variable that has not been given an initial value
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A thought for the future, you could use a PARAMETER to specify the model size
INTEGER MSIZE
PARAMETER MSIZE = 1020
and replace all 1020 with MSIZE
Then you would only need to change the parameter statement(s) to increase your model size
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you fix the CALL ATRATDAT error ?
If "yes" thenare you using Visual Studio to run your program (preferably in "debug" mode) ?
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page