From a3032884c5f494e68bef3ca645747e601f82e44f Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Thu, 1 Feb 2018 15:58:54 +0100 Subject: [PATCH 1/3] Update callback_library.md corrected logical issue. --- docs/src/features/callback_library.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/features/callback_library.md b/docs/src/features/callback_library.md index c05d2ec612..a821df2389 100644 --- a/docs/src/features/callback_library.md +++ b/docs/src/features/callback_library.md @@ -112,7 +112,7 @@ satisfies this property mathematically it can be difficult for ODE solvers to ensure it numerically, as these [MATLAB examples](https://www.mathworks.com/help/matlab/math/nonnegative-ode-solution.html) show. -In order to deal with this problem one can specify `isoutofdomain=(u,p,t) -> any(x +In order to deal with this problem one can specify `isoutofdomain=(u,p,t) -> !any(x -> x < 0, u)` as additional [solver option](http://docs.juliadiffeq.org/latest/basics/common_solver_opts.html), which will reject any step that leads to non-negative values and reduce the next time step. However, since this approach only rejects steps and hence From 48ab504f163095b55c94df427d8ddee588fcfc18 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Thu, 1 Feb 2018 16:14:25 +0100 Subject: [PATCH 2/3] Update common_solver_opts.md --- docs/src/basics/common_solver_opts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/basics/common_solver_opts.md b/docs/src/basics/common_solver_opts.md index 4b2800b908..e03b0ba98f 100644 --- a/docs/src/basics/common_solver_opts.md +++ b/docs/src/basics/common_solver_opts.md @@ -177,7 +177,7 @@ explanations of the timestepping algorithms, see the performs the saving routine. For more information, see the [Event Handling and Callback Functions manual page](../../features/callback_functions.html). * `isoutofdomain`: Specifies a function `isoutofdomain(u,p,t)` where, when it - returns false, it will reject the timestep. Disabled by default. + returns true, it will reject the timestep. Disabled by default. * `unstable_check`: Specifies a function `unstable_check(dt,u,p,t)` where, when it returns true, it will cause the solver to exit and throw a warning. Defaults to `any(isnan,u)`, i.e. checking if any value is a NaN. From 0eaf64af526ffa53800ce805ce50dab66c6a376b Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Thu, 1 Feb 2018 16:15:11 +0100 Subject: [PATCH 3/3] Update callback_library.md --- docs/src/features/callback_library.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/features/callback_library.md b/docs/src/features/callback_library.md index a821df2389..c05d2ec612 100644 --- a/docs/src/features/callback_library.md +++ b/docs/src/features/callback_library.md @@ -112,7 +112,7 @@ satisfies this property mathematically it can be difficult for ODE solvers to ensure it numerically, as these [MATLAB examples](https://www.mathworks.com/help/matlab/math/nonnegative-ode-solution.html) show. -In order to deal with this problem one can specify `isoutofdomain=(u,p,t) -> !any(x +In order to deal with this problem one can specify `isoutofdomain=(u,p,t) -> any(x -> x < 0, u)` as additional [solver option](http://docs.juliadiffeq.org/latest/basics/common_solver_opts.html), which will reject any step that leads to non-negative values and reduce the next time step. However, since this approach only rejects steps and hence