Closed ranjanan closed 5 years ago
@deeepeshthakur
I think this is happening because of dt < 0
. It works with abs(dt)
dt<0 is allowed BTW. We should have that be tdir*dt
so that tspan = (1.0, 0.0)
works, but that's probably a separate issue.
Yes. I think the fix for this particular issue should just be abs(dt)
in place of dt
in the sqrt calculation.
@ranjanan #848 should fix this.
For reference, the negative dt
comes into play in the adjoint calculation here.
Thanks @deeepeshthakur
This line here will throw a DomainError when the expression in the square root is negative.
I get that error when I run the following code: