solve_ODE_error_handling: solve an ODE with error handling

View source: R/general_functions.R

solve_ODE_error_handlingR Documentation

solve an ODE with error handling

Description

if an error occurs, solve with a smaller time interval for solution elements except the time vector, set to tol if the solution is below tol

Usage

solve_ODE_error_handling(mod, solving_time, tol = 1e-06)

Arguments

mod

an ode_system object generated by odin

solving_time

times at which to solve the ODE

tol

numeric vector of length 1: tolerance

Value

a deSolve object: solution of the ODE


ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.