# ODE solver for BVProblem never calls the provided function for boundary conditions

**URL:** <https://discourse.julialang.org/t/ode-solver-for-bvproblem-never-calls-the-provided-function-for-boundary-conditions/125447>\
**Category:** General Usage\
**Tags:** question\
**Created:** [February 1, 2025, 7:58am UTC](https://discourse.julialang.org/t/ode-solver-for-bvproblem-never-calls-the-provided-function-for-boundary-conditions/125447 "2025-02-01T07:58:16Z")\
**Posts on this page:** 7\
**Page:** 3

<div class="post-metadata">

**Author:** ![ErikQQY](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erikqqy/32/23074_2.png) [@ErikQQY](https://discourse.julialang.org/u/ErikQQY)\
**Post date:** [February 3, 2025, 7:00pm UTC](https://discourse.julialang.org/t/ode-solver-for-bvproblem-never-calls-the-provided-function-for-boundary-conditions/125447/41 "2025-02-03T19:00:59Z")

</div>

The expected REPL should be:

```julia
(jl_HFqaMY) pkg> st
  [85d9eb09] BoundaryValueDiffEqFIRK v1.4.0

julia> using BoundaryValueDiffEqFIRK

julia> RadauIIa5
RadauIIa5

julia> RadauIIA5
ERROR: UndefVarError: `RadauIIA5` not defined in `Main`
Suggestion: check for spelling errors or missing imports.

```

I have to say your issue is really weird, `RadauIIA5` is from OrdinaryDiffEq.jl for ODE solving, and `RadauIIa5` is from BoundaryValueDiffEq.jl for BVP solving, while both of them are Radau methods, they are actually handling different type of problems. And it is not possible to access `RadauIIA5` without `using OrdinaryDiffEq`, so can you make sure you restart the REPL session before executing these commands in REPL?

---

<div class="post-metadata">

**Author:** ![P0p5](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@P0p5](https://discourse.julialang.org/u/P0p5)\
**Post date:** [February 3, 2025, 7:07pm UTC](https://discourse.julialang.org/t/ode-solver-for-bvproblem-never-calls-the-provided-function-for-boundary-conditions/125447/42 "2025-02-03T19:07:48Z")

</div>

> [@ErikQQY](#):
>
> so can you make sure you restart the REPL session before executing these commands in REPL?

No, first time you mentioned this.  
Yes, if I start a new session, it works as you say it should.

So, why can’t I trust the result from “]status” ?!!!

---

<div class="post-metadata">

**Author:** ![ErikQQY](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erikqqy/32/23074_2.png) [@ErikQQY](https://discourse.julialang.org/u/ErikQQY)\
**Post date:** [February 3, 2025, 7:15pm UTC](https://discourse.julialang.org/t/ode-solver-for-bvproblem-never-calls-the-provided-function-for-boundary-conditions/125447/43 "2025-02-03T19:15:23Z")

</div>

Ahh, so here is the problem, it is not that you can’t trust “]status”. I believe in the previous REPL session, there are some misusing errors which caused the confusion, but luckily we have figured them out

---

<div class="post-metadata">

**Author:** ![P0p5](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@P0p5](https://discourse.julialang.org/u/P0p5)\
**Post date:** [February 3, 2025, 7:16pm UTC](https://discourse.julialang.org/t/ode-solver-for-bvproblem-never-calls-the-provided-function-for-boundary-conditions/125447/44 "2025-02-03T19:16:09Z")

</div>

Thanks for the link:

```julia
BoundaryValueDiffEq.jl/lib/BoundaryValueDiffEqFIRK/test/expanded
/firk_basic_tests.jl

```

The ony place I see anything about initialguess in this loooong piece of code is

```julia
# Not able to change the initial condition.
# Hard coded solution.

```

suggesting that initialguess is not even implemented yet.

True?

---

<div class="post-metadata">

**Author:** ![P0p5](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@P0p5](https://discourse.julialang.org/u/P0p5)\
**Post date:** [February 3, 2025, 7:17pm UTC](https://discourse.julialang.org/t/ode-solver-for-bvproblem-never-calls-the-provided-function-for-boundary-conditions/125447/45 "2025-02-03T19:17:38Z")

</div>

Well, before we “sweep this dust under the rug”,  
let’s try to understand what errors can cause this confusion.

---

<div class="post-metadata">

**Author:** ![P0p5](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@P0p5](https://discourse.julialang.org/u/P0p5)\
**Post date:** [February 3, 2025, 7:25pm UTC](https://discourse.julialang.org/t/ode-solver-for-bvproblem-never-calls-the-provided-function-for-boundary-conditions/125447/46 "2025-02-03T19:25:38Z")

</div>

> [@P0p5](#):
>
> The ony place I see anything about initialguess in this loooong piece of code is
> 
> ```julia
> # Not able to change the initial condition.
> # Hard coded solution.
> 
> ```
> 
> suggesting that initialguess is not even implemented yet.

Well those comments may not be about initialguess.  
If there is anything there about initialguess, could you please extract thatcode snippet for me?  
thanks

---

<div class="post-metadata">

**Author:** ![P0p5](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@P0p5](https://discourse.julialang.org/u/P0p5)\
**Post date:** [February 4, 2025, 12:12am UTC](https://discourse.julialang.org/t/ode-solver-for-bvproblem-never-calls-the-provided-function-for-boundary-conditions/125447/47 "2025-02-04T00:12:39Z")

</div>

Please see two follow-up discourses 125509 & 125510.  
thanks!

[Previous page](https://discourse.julialang.org/t/ode-solver-for-bvproblem-never-calls-the-provided-function-for-boundary-conditions/125447.md?page=2)
