- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
The allocatable array B in the snippet cannot be seen through the debugger when using 11.1.065. I am using VS2005 Professional on WinXP64 Professional.
In my actual case, along with the allocatable arrays, some other scalar variables from the host are also not visible. But I haven't been able to reproduce in a snippet form yet.
Abhi
=======
Module OM
Implicit None
Integer :: JJ = 5
Contains
Subroutine Method(n, A)
Implicit None
Integer, Intent(IN) :: n
Real, Intent(IN) :: A(n,JJ)
Integer :: i, m
Real, Allocatable :: B(:)
Character(2) :: Key
Key = 'TT'
i = 1
Allocate(B(n))
B = 0.0
Call Process(Key)
Contains
Subroutine Process(Key)
Implicit None
Character(*), Intent(IN) :: Key
Print *, "In here."
Print *, JJ, i
Print *, B ! Here B cannot be seen in the debugger.
Print *, A
Print *, n
End Subroutine Process
End Subroutine Method
End Module OM
Program Test_HostAssociation
Use OM
Implicit None
Real :: A(4,5)
A = 1.0
Call Method(Size(A,1), A)
End Program Test_HostAssociation
=======
The allocatable array B in the snippet cannot be seen through the debugger when using 11.1.065. I am using VS2005 Professional on WinXP64 Professional.
In my actual case, along with the allocatable arrays, some other scalar variables from the host are also not visible. But I haven't been able to reproduce in a snippet form yet.
Abhi
=======
Module OM
Implicit None
Integer :: JJ = 5
Contains
Subroutine Method(n, A)
Implicit None
Integer, Intent(IN) :: n
Real, Intent(IN) :: A(n,JJ)
Integer :: i, m
Real, Allocatable :: B(:)
Character(2) :: Key
Key = 'TT'
i = 1
Allocate(B(n))
B = 0.0
Call Process(Key)
Contains
Subroutine Process(Key)
Implicit None
Character(*), Intent(IN) :: Key
Print *, "In here."
Print *, JJ, i
Print *, B ! Here B cannot be seen in the debugger.
Print *, A
Print *, n
End Subroutine Process
End Subroutine Method
End Module OM
Program Test_HostAssociation
Use OM
Implicit None
Real :: A(4,5)
A = 1.0
Call Method(Size(A,1), A)
End Program Test_HostAssociation
=======
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try using the "Stack frame" pulldown to select the host frame - the variable should be visible there. I agree that it would be nice if you could see all accessible variables.

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