Fixing Kp=0 bug for Gallagher

This commit is contained in:
phamkh
2025-11-09 20:28:45 -07:00
parent 7f23f40b30
commit af6762b141

View File

@@ -96,6 +96,11 @@ module earthhelper
D = 0.0
xfn = 0.0_rp
yfn = 0.0_rp
xfd = 0.0_rp
yfd = 0.0_rp
if (present(kpO)) then
kp = nint(kpO) ! Gallagher model takes integer Kp
else