# Slow performance while solving 1-d poisson equation using GeneralMIRK4() from BoundaryValueDiffEq

**URL:** <https://discourse.julialang.org/t/slow-performance-while-solving-1-d-poisson-equation-using-generalmirk4-from-boundaryvaluediffeq/66444>\
**Category:** New to Julia\
**Created:** [August 15, 2021, 7:56pm UTC](https://discourse.julialang.org/t/slow-performance-while-solving-1-d-poisson-equation-using-generalmirk4-from-boundaryvaluediffeq/66444 "2021-08-15T19:56:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![usman0311](https://avatars.discourse-cdn.com/v4/letter/u/2bfe46/32.png) [@usman0311](https://discourse.julialang.org/u/usman0311)\
**Post date:** [August 15, 2021, 7:56pm UTC](https://discourse.julialang.org/t/slow-performance-while-solving-1-d-poisson-equation-using-generalmirk4-from-boundaryvaluediffeq/66444/1 "2021-08-15T19:56:16Z")

</div>

I solved 1-d poisson equation using julia 1.6.2 with BoundaryValueDiffEq package, it is taking very long time to solve. Same problem is taking less than a minute in python’s scipy.integrate.solve\_bvp. Could anyone help me in figuring out the problem in the code. I have appended the file link here [MOSPoisson.ipynb - Google Drive](https://drive.google.com/file/d/1awoW3gwnimsLjy1xjAUZ9lgUEQFmx4mz/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [August 15, 2021, 10:27pm UTC](https://discourse.julialang.org/t/slow-performance-while-solving-1-d-poisson-equation-using-generalmirk4-from-boundaryvaluediffeq/66444/2 "2021-08-15T22:27:59Z")

</div>

Yes, it’s non-adaptive right now so it’s not great.

---

<div class="post-metadata">

**Author:** ![usman0311](https://avatars.discourse-cdn.com/v4/letter/u/2bfe46/32.png) [@usman0311](https://discourse.julialang.org/u/usman0311)\
**Post date:** [August 16, 2021, 5:44am UTC](https://discourse.julialang.org/t/slow-performance-while-solving-1-d-poisson-equation-using-generalmirk4-from-boundaryvaluediffeq/66444/3 "2021-08-16T05:44:29Z")

</div>

Thanks Chris, so is there any other Julia package for getting this faster

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [August 16, 2021, 6:20am UTC](https://discourse.julialang.org/t/slow-performance-while-solving-1-d-poisson-equation-using-generalmirk4-from-boundaryvaluediffeq/66444/4 "2021-08-16T06:20:11Z")

</div>

[https://github.com/luchr/ODEInterface.jl](https://github.com/luchr/ODEInterface.jl) has some wrappers of BVP solvers that might do a little bit better until we improve in this domain.

---

<div class="post-metadata">

**Author:** ![usman0311](https://avatars.discourse-cdn.com/v4/letter/u/2bfe46/32.png) [@usman0311](https://discourse.julialang.org/u/usman0311)\
**Post date:** [August 16, 2021, 1:03pm UTC](https://discourse.julialang.org/t/slow-performance-while-solving-1-d-poisson-equation-using-generalmirk4-from-boundaryvaluediffeq/66444/5 "2021-08-16T13:03:15Z")

</div>

Thanks, I will solve it this way then
