From my reading of the R implementation, the commented out section is not supposed to be attainable on the first pass. The R code initializes the variables (DEL1, DEL2, XG, XH) to zero, but with a comment saying "to assuage compilers that warn that variables 'might be used uninitialized'". I thus assume that we can use a pythonic solution to the same problem.
The variables are first set at the end of the first iteration, thus the it > 1 check.
CAUTION: I know Python, I know how to read Fortran, but I do NOT claim to understands the maths going on here.
@TC-FF, please take a look at this and confirm if this should work.
Fixes #16.
From my reading of the R implementation, the commented out section is not supposed to be attainable on the first pass. The R code initializes the variables (
DEL1, DEL2, XG, XH
) to zero, but with a comment saying "to assuage compilers that warn that variables 'might be used uninitialized'". I thus assume that we can use a pythonic solution to the same problem.The variables are first set at the end of the first iteration, thus the
it > 1
check.CAUTION: I know Python, I know how to read Fortran, but I do NOT claim to understands the maths going on here.
@TC-FF, please take a look at this and confirm if this should work.