openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
ODEint.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // openCARP is an open cardiac electrophysiology simulator.
3 //
4 // Copyright (C) 2020 openCARP project
5 //
6 // This program is licensed under the openCARP Academic Public License (APL)
7 // v1.0: You can use and redistribute it and/or modify it in non-commercial
8 // academic environments under the terms of APL as published by the openCARP
9 // project v1.0, or (at your option) any later version. Commercial use requires
10 // a commercial license (info@opencarp.org).
11 //
12 // This program is distributed without any warranty; see the openCARP APL for
13 // more details.
14 //
15 // You should have received a copy of the openCARP APL along with this program
16 // and can find it online: http://www.opencarp.org/license
17 // ----------------------------------------------------------------------------
18 
19 /*
20  * header for ODEint
21  *
22  * Formalized ODE integration following an approach similar to CVODE etc.
23  */
24 #ifndef ODEint_H
25 #define ODEint_H
26 
27 #include "limpet_types.h"
28 
29 namespace limpet {
30 
31 #define ODEint_MaxVecLen 100 // Do not allow any ODE systems with more than 100 variables
32 
33 struct d_OdeVec {
34  int len;
36 };
37 
38 void ODEint_RK(GlobalData_t *,GlobalData_t *, void f(GlobalData_t*,GlobalData_t*,void*), void *, int, GlobalData_t);
39 void ODEint_FE(GlobalData_t *y, GlobalData_t *ydot, void *, void *f_data, int len, GlobalData_t dt);
40 
41 void d_ODEint_FE(d_OdeVec *y, d_OdeVec *ydot, void *, void *f_data, GlobalData_t dt);
42 void d_ODEint_RK(d_OdeVec *y, d_OdeVec *ydot, void f(GlobalData_t*,d_OdeVec*,void*),
43  void *f_data, GlobalData_t dt);
44 
45 } // namespace limpet
46 
47 #endif
48 
49 
void ODEint_FE(GlobalData_t *y, GlobalData_t *ydot, void *f, void *f_data, int len, GlobalData_t dt)
Definition: ODEint.cc:75
void ODEint_RK(GlobalData_t *y, GlobalData_t *ydot, void f(GlobalData_t *, GlobalData_t *, void *), void *f_data, int len, GlobalData_t dt)
Definition: ODEint.cc:40
void d_ODEint_RK(d_OdeVec *y, d_OdeVec *ydot, void f(GlobalData_t *, d_OdeVec *, void *), void *f_data, GlobalData_t dt)
Definition: ODEint.cc:99
void d_ODEint_FE(d_OdeVec *y, d_OdeVec *ydot, void *f, void *f_data, GlobalData_t dt)
Definition: ODEint.cc:134
GlobalData_t * vec
Definition: ODEint.h:35
SF_real GlobalData_t
Definition: limpet_types.h:27