forked from Conedy/Conedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathodeNode.h
47 lines (31 loc) · 1.17 KB
/
odeNode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef odeNode_h
#define odeNode_h odeNode_h
//#include "gslNoise.h"
//#include <valarray>
//#include <map>
#include "containerNode.h"
//#include "params.h"
#include "baseType.h"
using namespace std;
// using baseType instead of basetype here, as the gsl does not support long baseType anyway
namespace conedy {
//! base class for nodes representing an ODE
class odeNode : public containerNode<baseType,1> {
private:
protected:
//! Zwischenspeicher, der in der swap-Funktion nach dynNode::x geschrieben wird.
public:
// odeNode() {};
baseType *odeNodeTmp;
odeNode(networkElementType n) : // ngls: Anzahl der Gleichungen, NodeNumber, h Schrittweite
containerNode<baseType,1>(n) {}
odeNode(networkElementType n, unsigned int dim) : // ngls: Anzahl der Gleichungen, NodeNumber, h Schrittweite
containerNode<baseType,1>(n, dim) {}
virtual ~odeNode() {}
// virtual void operator()(valarray <baseType> & y , valarray <baseType> & f);
virtual void operator() (const baseType x[], baseType dydx[]) = 0;
static int dgl ( baseType t,const baseType y[], baseType f[], void *params );
static void dgl (baseType *y, baseType* f);
};
}
#endif