Skip to content

Commit 92cacb5

Browse files
authored
Override saveat, alwys use dense output (#27)
* Some reference files were generated with more than interval time points. The solution can only use dense output (Hermite-like interpolation, higher order than linear) if saveat is deactivated.
1 parent ca8fd0d commit 92cacb5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/simulate.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ function run_simulate(ode_prob, model_dir::String, model::String;
3232
# Redirect all library log output (including Symbolics/MTK warnings)
3333
# to the log file so they don't clutter stdout.
3434
sol = Logging.with_logger(logger) do
35-
solve(ode_prob, Rodas5P())
35+
# Overwrite saveat, always use dense output.
36+
solve(ode_prob, Rodas5P(); saveat = Float64[], dense = true)
3637
end
3738
sim_time = time() - t0
3839
if sol.retcode == ReturnCode.Success

0 commit comments

Comments
 (0)