Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ModelOrderReduction"
uuid = "207801d6-6cee-43a9-ad0c-f0c64933efa0"
authors = ["Bowen S. Zhu <[email protected]> and contributors"]
version = "0.1.1"
version = "0.1.2"

[deps]
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Expand All @@ -15,7 +15,7 @@ TSVD = "9449cd9e-2762-5aa3-a617-5413e99d722e"
[compat]
DocStringExtensions = "0.8, 0.9"
LinearAlgebra = "1"
ModelingToolkit = "9"
ModelingToolkit = "10"
RandomizedLinAlg = "0.1"
Setfield = "0.8, 1"
SparseArrays = "1"
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ Documenter = "1"
LaTeXStrings = "1.3"
MethodOfLines = "0.11"
ModelOrderReduction = "0.1"
ModelingToolkit = "9"
ModelingToolkit = "10"
Plots = "1.40"
2 changes: 1 addition & 1 deletion src/deim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ The LHS of equations in `sys` are all assumed to be 1st order derivatives. Use
`ModelingToolkit.ode_order_lowering` to transform higher order ODEs before applying DEIM.

`sys` is assumed to have no internal systems. End users are encouraged to call
`ModelingToolkit.structural_simplify` beforehand.
`ModelingToolkit.mtkcompile` beforehand.

The POD basis used for DEIM interpolation is obtained from the snapshot matrix of the
nonlinear terms, which is computed by executing the runtime-generated function for
Expand Down
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $(TYPEDSIGNATURES)
Return the differential equations and other non-differential equations.

For differential equations, this function assume the derivative is the only single term at
the left hand side, which is typically the result of `ModelingToolkit.structural_simplify`.
the left hand side, which is typically the result of `ModelingToolkit.mtkcompile`.

Equations from subsystems are not included.
"""
Expand Down
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Aqua = "0.8"
OrdinaryDiffEq = "6"
MethodOfLines = "0.11"
ModelingToolkit = "9"
ModelingToolkit = "10"
SafeTestsets = "0.1"
2 changes: 1 addition & 1 deletion test/deim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dxs = [x => dx]
order = 2
discretization = MOLFiniteDifference(dxs, t; approx_order = order)
ode_sys, tspan = symbolic_discretize(pde_sys, discretization)
simp_sys = structural_simplify(ode_sys) # field substitutions is non-empty
simp_sys = mtkcompile(ode_sys) # field substitutions is non-empty
ode_prob = ODEProblem(simp_sys, nothing, tspan)
sol = solve(ode_prob, Tsit5(), saveat = 1.0)

Expand Down
Loading