- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to read in some input data through a namelist.
I have declared a rank 3 array:
real :: inclusion(20,5,5)=0.0
In the namelist I include the the array inclusion and in the input file
I have the following statement
...
inclusion(1:4,1,1)=3.5, 4, 4, 3
...
The program crashes and exit with severe error 19 in Compaq Visual
Fortran version 6.1A.
If I instead choose to have in the input file the following statement
it works fine.
...
inclusion(4,1,1)= 3
...
Why can I read in one value to the rank 3 array but not a sequence of 4
values? Might it be a bug/limitation in Visual Fortran?
If it is a bug is it already fixed in the lates version of Visual Fortran? If so I will of course upgrade.
I appreciate any help I get to solve this problem.
sincerely
jorgen johansson
johansson_jorgen@spamyahoo.com
(remove the word spam in infront of yahoo.)
I am trying to read in some input data through a namelist.
I have declared a rank 3 array:
real :: inclusion(20,5,5)=0.0
In the namelist I include the the array inclusion and in the input file
I have the following statement
...
inclusion(1:4,1,1)=3.5, 4, 4, 3
...
The program crashes and exit with severe error 19 in Compaq Visual
Fortran version 6.1A.
If I instead choose to have in the input file the following statement
it works fine.
...
inclusion(4,1,1)= 3
...
Why can I read in one value to the rank 3 array but not a sequence of 4
values? Might it be a bug/limitation in Visual Fortran?
If it is a bug is it already fixed in the lates version of Visual Fortran? If so I will of course upgrade.
I appreciate any help I get to solve this problem.
sincerely
jorgen johansson
johansson_jorgen@spamyahoo.com
(remove the word spam in infront of yahoo.)
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it's a bug. NAMELIST input wasn't accepting array slice notation. It does now, so I suggest you upgrade to 6.5A.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting back to you on this Steve. My laboratory bought the new version i.e. 6.5 and I updated to 6.5A by downloading the patch. but I can still not use array slice notation on a rank 2 array. Rank 1 array slice notation works fine but not rank 2.
jorgen
jorgen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error message is number 17 not 19. sorry.
jorgen
jorgen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please send us an example to vf-support@compaq.com and we'll take a look.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My Apologies. I had not rebooted the system after installation. (was not asked to so I though it was not necessary). After rebooting the computer this morning I realized the was acutally fixed. Thanks and I am sorry for the trouble I may may have caused.
jorgen
jorgen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Curious - normally CVF doesn't require a reboot. Something else must have been going on. Glad to hear you got it resolved.
Steve
Steve

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