Skip to content

Commit 7775150

Browse files
fixup! test: add tests for SCCNonlinearProblem codegen
1 parent f42ee57 commit 7775150

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/scc_nonlinear_problem.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using ModelingToolkit
22
using NonlinearSolve, SCCNonlinearSolve
3+
using OrdinaryDiffEq
34
using SciMLBase, Symbolics
45
using LinearAlgebra, Test
56

@@ -62,7 +63,7 @@ end
6263
tspan = (0.0, 1.0)
6364
mass_matrix = [1.0 0.0 0.0 0.0 0.0; 0.0 1.0 0.0 0.0 0.0; 0.0 0.0 1.0 0.0 0.0;
6465
0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0]
65-
66+
dt = 1e-3
6667
function nlf(u1, (u0, p))
6768
resid = Any[0 for _ in u0]
6869
f!(resid, u1, p, 0.0)

0 commit comments

Comments
 (0)