Print an error if non-positive dt is detected for the usual constructors of any of the integrators. There might be some internal use cases for negative dt; this can be achieved with a mutable update:
Also deprecate the Base.copy(dyn::Langevin) overload. For user code, the same can be achieved with deepcopy(dyn). It's not clear we want to recommend that to users, though. See https://github.com/SunnySuite/Sunny.jl/issues/193 for discussion.
Print an error if non-positive dt is detected for the usual constructors of any of the integrators. There might be some internal use cases for negative dt; this can be achieved with a mutable update:
Also deprecate the
Base.copy(dyn::Langevin)
overload. For user code, the same can be achieved withdeepcopy(dyn)
. It's not clear we want to recommend that to users, though. See https://github.com/SunnySuite/Sunny.jl/issues/193 for discussion.