-
Notifications
You must be signed in to change notification settings - Fork 9
/
DaspkJac.h
47 lines (40 loc) · 1.76 KB
/
DaspkJac.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 DASPKJAC_H
#define DASPKJAC_H
#include "Definitions.h"
#include "Jacobian.h"
#include "Preconditioner.h"
#include "DaeDefinition.h"
namespace Daetk
{
typedef void (*GlobDaspkRes)(const real& t,real* y,real* yp,
real& cj,real* delta, int* ires, real* rpar,
int *ipar);
typedef void (*jac_direct_p)( real& t, real* y, real* yprime,
real* pd, real& cj, real* rpar, int* ipar);
typedef void (jac_krylov_p)(GlobDaspkRes res,int* ires,int* neq, real& t, real* y, real* yprime,
real* weight, real* residual,real& work,
real& h, real& CJ,
real* wp, int* iwp, int& ier, real* rpar,int* ipar);
class DaspkJacobian
{
public:
typedef void (*jac_direct_p)( real& t, real* y, real* yprime,
real* pd, real& cj, real* rpar, int* ipar);
typedef void (*jac_krylov_p)(GlobDaspkRes res,int* ires,int* neq, real& t, real* y, real* yprime,
real* weight, real* residual,real& work,
real& h, real& CJ,
real* wp, int* iwp, int& ier, real* rpar,int* ipar);
DaspkJacobian(){}
virtual ~DaspkJacobian(){}
static void jac_direct( real& t, real* y, real* yprime,
real* pd, real& cj, real* rpar, int* ipar);
static void jac_krylov(GlobDaspkRes res,int* ires,int* neq, real& t, real* y, real* yprime,
real* weight, real* residual,real& work,
real& h, real& CJ,
real* wp, int* iwp, int& ier, real* rpar,int* ipar);
static DaeDefinition* theDae;
static Preconditioner* thePrec;
static Jacobian* theJac;
};
}//daetk
#endif