From fbea06d300283f2848b8a3d98b0d23427a4072d0 Mon Sep 17 00:00:00 2001 From: Philip Bittihn <philip.bittihn@ds.mpg.de> Date: Sun, 19 Jun 2022 22:18:13 +0200 Subject: [PATCH] Avoid deprecation warning in non-deprecated function --- src/export/generic.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/export/generic.jl b/src/export/generic.jl index 2ee7e63..7e0af39 100644 --- a/src/export/generic.jl +++ b/src/export/generic.jl @@ -121,7 +121,7 @@ Create a [`SaveCallback`](@ref) that periodically saves simulation snapshots to Uses a [`PeriodicCallback`](@ref) with the given `interval` and `offset`. """ SaveCallback(backend, filename; interval = 1.0, offset = 0.0, dumprng = (s, sim) -> (s.nextsnap % 10 == 0), warn = true) = - SaveCallback{backend}(PeriodicCallback(interval, sim -> true; offset = offset), filename, dumprng, warn) + SaveCallback{backend}(PeriodicCallback(sim -> true, interval; offset = offset), filename, dumprng, warn) function (s::SaveCallback)(sim::Simulation) -- GitLab