- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
0 Antworten
Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite