src/gray_core.f90: fix use of uninitialised variable

When the beam reflects before entering the boundary the Jones vector
(ext, eyt) is still uninitialised, set it at the beginning to avoid
raising an exception in debug mode.
This commit is contained in:
Michele Guerini Rocco 2024-11-01 18:03:50 +01:00
parent 42fcac0726
commit 2e8cbb78ef
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -164,6 +164,7 @@ contains
! Set original polarisation
psipv(0) = params%antenna%psi
chipv(0) = params%antenna%chi
call ellipse_to_field(psipv(0), chipv(0), ext, eyt)
! Error value for the whole simulation
error = 0