src/coreprofiles.f90: add some debug output

This commit is contained in:
Michele Guerini Rocco 2023-05-23 17:49:04 +02:00
parent 7ed76959d4
commit 707dca1ab8
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -462,9 +462,12 @@ contains
if (psi > tail%start .and. psi < tail%end) then
! Fall back to the midpoint of ψ and the launcher ψ
call log_warning('downscaled tail to not reach the wave launcher', &
mod='coreprofiles', proc='set_profiles_spline')
write (msg, '(a, g0.3, a, g0.3, " → ", g0.3)') &
'launcher: ψ=', psi, ' boundary: ψ=', tail%end, (tail%start + psi)/2
call log_debug(msg, mod='coreprofiles', proc='set_profiles_spline')
tail%end = (tail%start + psi)/2
call log_warning('downscaled tail to not reach the wave launcher', &
mod='coreprofiles', proc='set_profiles_spline')
end if
if (psi > 0 .and. psi < tail%start) then