spu_implicit.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010 (c) SINTEF ICT, Applied Mathematics.
3  * Jostein R. Natvig <Jostein.R.Natvig at sintef.no>
4  */
5 
6 #ifndef SPU_IMPLICIT_H_INCLUDED
7 #define SPU_IMPLICIT_H_INCLUDED
8 
9 typedef struct Sparse {
10  int m;
11  int n;
12  int *ia;
13  int *ja;
14  double *sa;
15 } sparse_t;
16 
17 
18 
19 void
20 spu_implicit_assemble(struct UnstructuredGrid *g, double *s0, double *s, double *mob, double *dmob,
21  double *dflux, double *gflux, double *src, double dt, sparse_t *S,
22  double *b);
23 
24 double
25 spu_implicit(struct UnstructuredGrid *g, double *s0, double *s, double h, double x0, int ntab, double *tab,
26  double *dflux, double *gflux, double *src, double dt,
27  void (*linear_solver)(int, int*, int*, double *, double *, double *));
28 
29 #endif /* SPU_IMPLICIT_H_INCLUDED */
30 
Definition: grid.h:98
double * sa
Definition: spu_implicit.h:14
Definition: spu_implicit.h:9
struct Sparse sparse_t
int m
Definition: spu_implicit.h:10
int n
Definition: spu_implicit.h:11
int * ia
Definition: spu_implicit.h:12
double spu_implicit(struct UnstructuredGrid *g, double *s0, double *s, double h, double x0, int ntab, double *tab, double *dflux, double *gflux, double *src, double dt, void(*linear_solver)(int, int *, int *, double *, double *, double *))
int * ja
Definition: spu_implicit.h:13
void spu_implicit_assemble(struct UnstructuredGrid *g, double *s0, double *s, double *mob, double *dmob, double *dflux, double *gflux, double *src, double dt, sparse_t *S, double *b)