Skip to content

Commit

Permalink
Removed wrong initial guess again.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBreuling committed Aug 23, 2024
1 parent 56f28ed commit bcb4ad9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scipy_dae/integrate/_dae/radau.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def solve_collocation_system2(fun, t, y, h, Y0, Yp0, scale, tol,
tau = t + h * C

Yp = Yp0
Y = Y0
Y = y + h * A.dot(Yp)
# TODO: Why is this bad?
# Y = Y0
V_dot = TI.dot(Yp)

F = np.empty((s, n))
Expand Down Expand Up @@ -621,6 +623,9 @@ def _step_impl(self):
# note: this only works when we exrapolate the derivative
# of the collocation polynomial but do not use the sth order
# collocation polynomial for the derivatives as well.
# Yp0 = self.sol(t + h * C)[1].T
# # Z0 = self.sol(t + h * C)[0].T - y
# # Yp0 = (1 / h) * A_inv @ Z0
Y0, Yp0 = map(np.transpose, self.sol(t + h * C))
else:
Z0 = self.sol(t + h * C)[0].T - y
Expand Down

0 comments on commit bcb4ad9

Please sign in to comment.