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:
parent
42fcac0726
commit
2e8cbb78ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user