Skip to content

Commit a4c5586

Browse files
refactor: remove dead code in structural transformation utils
1 parent 8757381 commit a4c5586

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/structural_transformation/utils.jl

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -438,23 +438,6 @@ function torn_system_jacobian_sparsity(sys)
438438
return sparse(I, J, true, neqs, neqs)
439439
end
440440

441-
###
442-
### Nonlinear equation(s) solving
443-
###
444-
445-
@noinline function nlsolve_failure(rc)
446-
error("The nonlinear solver failed with the return code $rc.")
447-
end
448-
449-
function numerical_nlsolve(f, u0, p)
450-
prob = NonlinearProblem{false}(f, u0, p)
451-
sol = solve(prob, SimpleNewtonRaphson())
452-
rc = sol.retcode
453-
(rc == ReturnCode.Success) || nlsolve_failure(rc)
454-
# TODO: robust initial guess, better debugging info, and residual check
455-
sol.u
456-
end
457-
458441
###
459442
### Misc
460443
###

0 commit comments

Comments
 (0)