Control of mesh and error for termination

6 views
Skip to first unread message

Scott Calabrese Barton

unread,
Dec 7, 2014, 10:48:50 AM12/7/14
to scikits-b...@googlegroups.com
Hi, I've used BVP4C in MATLAB and am testing BVP_SOLVER in python. 

I wonder if there is any way to control the mesh that BVP_SOLVER uses, and to set the error tolerance used to determine when convergence has been achieved?

John Salvatier

unread,
Dec 7, 2014, 2:58:20 PM12/7/14
to scikits-bvp solver
Yup, I believe it goes into the solve() call: .com/jsalvatier/scikits.bvp_solver/blob/master/scikits/bvp_solver/solver.py

I think you want to set 'max_subintervals' and 'tolerance'. 

On Sun, Dec 7, 2014 at 7:48 AM, Scott Calabrese Barton <s.calabr...@gmail.com> wrote:
Hi, I've used BVP4C in MATLAB and am testing BVP_SOLVER in python. 

I wonder if there is any way to control the mesh that BVP_SOLVER uses, and to set the error tolerance used to determine when convergence has been achieved?

--

---
You received this message because you are subscribed to the Google Groups "scikits.bvp_solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scikits-bvp_sol...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Calabrese Barton

unread,
Dec 9, 2014, 2:12:48 PM12/9/14
to scikits-b...@googlegroups.com
Thanks, I couldn't find any documentation on that, but I did find all the options listed in scikit/bvp_solver/solver.py:

def solve(bvp_problem,
          solution_guess,
          initial_mesh = None,
          parameter_guess = None,
          max_subintervals = 300,
          singular_term = None,
          tolerance = 1.0e-6,
          method = 4,
          trace = 0,
          error_on_fail = True):
Reply all
Reply to author
Forward
0 new messages