Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28892 Discussions

Cannot watch automatic arrays in debug mode

Jon_D
New Contributor I
198 Views

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

 

0 Kudos
0 Replies
Reply