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

Cannot watch array values in IFX

Jon_D
New Contributor II
363 Views

I am not able to see the values of the three automatic arrays in the DoSomething subroutine of the code below in a debug session using IFX. The watch window shows them as arrays with dimension 15 but their values show as "Undefined address". I am using oneAPI_2024.2.1.1083 with VS 2022 Community Edition.

Is there a way I can properly watch these arrays or is this a Fortran-VS integration issue?

Thanks!

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