-
-
Notifications
You must be signed in to change notification settings - Fork 232
Add nlstep_compile as a debug tool for turning off simplification #3873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This can be used in order to test correctness and differences with the nlstep interface as it should exactly match the NonlinearSolveAlg
Benchmark Results (Julia vlts)Time benchmarks
Memory benchmarks
|
Benchmark Results (Julia v1)Time benchmarks
Memory benchmarks
|
@@ -3,7 +3,7 @@ | |||
t = nothing, eval_expression = false, eval_module = @__MODULE__, sparse = false, | |||
steady_state = false, checkbounds = false, sparsity = false, analytic = nothing, | |||
simplify = false, cse = true, initialization_data = nothing, expression = Val{false}, | |||
check_compatibility = true, nlstep = false, kwargs...) where {iip, spec} | |||
check_compatibility = true, nlstep = false, nlstep_compile = true, kwargs...) where {iip, spec} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
check_compatibility = true, nlstep = false, nlstep_compile = true, kwargs...) where {iip, spec} | |
check_compatibility = true, nlstep = false, nlstep_compile = true, kwargs...) where { | |
iip, spec} |
@@ -1,5 +1,5 @@ | |||
function generate_ODENLStepData(sys::System, u0, p, mm = calculate_massmatrix(sys)) | |||
nlsys, outer_tmp, inner_tmp = inner_nlsystem(sys, mm) | |||
function generate_ODENLStepData(sys::System, u0, p, mm = calculate_massmatrix(sys), nlstep_compile::Bool = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
function generate_ODENLStepData(sys::System, u0, p, mm = calculate_massmatrix(sys), nlstep_compile::Bool = true) | |
function generate_ODENLStepData( | |
sys::System, u0, p, mm = calculate_massmatrix(sys), nlstep_compile::Bool = true) |
shouldn't this be labeled nlstep_simplify? |
Well we call it mtkcompile in v10, not structural_simplify. It should only be internal though, I don't think it should be documented since there isn't a user level reason to run nlstep without simplification. |
This can be used in order to test correctness and differences with the nlstep interface as it should exactly match the NonlinearSolveAlg