/* Copyright (C) 2016 - IIT Bombay - FOSSEE This file must be used under the terms of the CeCILL. This source file is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt Author: Siddhesh Wani Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ /*Function for solving ODEs using GSL library*/ #include "ode.h" #include "types.h" #include #include #include void dodea(double *initial_value, double start_time, double end_time, \ int (*ode_function), char *solver_type, double nequs, double eps_abs, \ double eps_rel, double step_size, int *params, double *out) { double t = start_time; gsl_odeiv2_step_type *step_type; /*Initialise output to initial state*/ int counter = 0; for (counter = 0; counter