# Is there a way to set Non Negativity, with CVODE\_BDF()~ Sundials Pkg, as isoutofdomain() was ignored-Thanks?

**URL:** <https://discourse.julialang.org/t/is-there-a-way-to-set-non-negativity-with-cvode-bdf-sundials-pkg-as-isoutofdomain-was-ignored-thanks/42960>\
**Category:** General Usage\
**Tags:** ode\
**Created:** [July 12, 2020, 7:52pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-set-non-negativity-with-cvode-bdf-sundials-pkg-as-isoutofdomain-was-ignored-thanks/42960 "2020-07-12T19:52:56Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![cbasile21](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cbasile21/32/13072_2.png) [@cbasile21](https://discourse.julialang.org/u/cbasile21)\
**Post date:** [July 18, 2020, 2:27am UTC](https://discourse.julialang.org/t/is-there-a-way-to-set-non-negativity-with-cvode-bdf-sundials-pkg-as-isoutofdomain-was-ignored-thanks/42960/8 "2020-07-18T02:27:09Z")

</div>

Thank you so much for your response Chris. Your comments about isoutofdomain and the notion of passing the indecing to the function made it very clear, thank you. For the call back gotcha, I will upgrade and test again and report, thank you. Lastly, the post I was refering to about positive domain was this one, [Domain Troubles with Differential Equations Solver (with non-auto-differentiable function inside the ODE def)](https://discourse.julialang.org/t/domain-troubles-with-differential-equations-solver-with-non-auto-differentiable-function-inside-the-ode-def/13650), here I saw positive domain potentially being used and passed as option, positive domain( 1.0 ) , I really did not quite get how to use positive domain from the that, or even the main definition , I will take another look soon, and especially once I have the call back library. - Thank you so much for your quick response and help. !!

---

_[View the full topic](https://discourse.julialang.org/t/is-there-a-way-to-set-non-negativity-with-cvode-bdf-sundials-pkg-as-isoutofdomain-was-ignored-thanks/42960)._
