- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am running a small test program that contains the following DO loop:
DO ld2 = 1,10
res(ld2) = 10.*ld2
print *, res(ld2)
END DO
The variable "res" was declared in a module and I have the USE statement in this routine so that it can be referenced. However,
if I put res(ld2) in the watch window, I get the following message:
res(ld2) EE2347 : Undefined variable ld2
If I declare "res" within the routine instead of in the module, then
the watch variable shows the actual value contained in res(ld2). How can I get the debugger to show me the value of the variable when it has been declared in a module?
DO ld2 = 1,10
res(ld2) = 10.*ld2
print *, res(ld2)
END DO
The variable "res" was declared in a module and I have the USE statement in this routine so that it can be referenced. However,
if I put res(ld2) in the watch window, I get the following message:
res(ld2) EE2347 : Undefined variable ld2
If I declare "res" within the routine instead of in the module, then
the watch variable shows the actual value contained in res(ld2). How can I get the debugger to show me the value of the variable when it has been declared in a module?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
in the watch window, use this : module_name::res(ld2)
If you use IE, this link might bring up the reference in the documentation.
-John
If you use IE, this link might bring up the reference in the documentation.
-John
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