- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In the following code, in debug mode, I am not able to see the values stored in the three automatic arrays in the DoSomething subroutine. Watch window shows them as arrays with dimension of 15, but the values show as "Undefined address". This happens with IFX; IFORT is fine. Is there a way to circumvent this issue?
I am using VS 2022, oneAPI 2024.2.1.1083
module aModule
implicit none
contains
subroutine DoSomething(ne,ilutype)
integer,intent(in) :: ne,ilutype
real(8),dimension(ne) :: relemvalues,relemvalues_short,relemvalues_surplus
select case (ilutype)
case (1)
relemvalues = 5.0
case (2)
relemvalues = 8.0
case default
relemvalues = 1.0
end select
relemvalues_short = 0.0
relemvalues_surplus = 0.0
end subroutine DoSomething
end module aModule
program main
use aModule
implicit none
integer :: ne,ilutype
ne = 15
ilutype = 1
call DoSomething(ne,ilutype)
end program main
Link Copied
0 Replies
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