KTH framework for Nek5000 toolboxes; testing version
0.0.1
crs.h
Go to the documentation of this file.
1
#ifndef CRS_H
2
#define CRS_H
3
4
#if !defined(COMM_H)
5
#warning "crs.h"
requires "comm.h"
6
#endif
7
8
#define crs_xxt_setup PREFIXED_NAME(crs_xxt_setup)
9
#define crs_xxt_solve PREFIXED_NAME(crs_xxt_solve)
10
#define crs_xxt_stats PREFIXED_NAME(crs_xxt_stats)
11
#define crs_xxt_free PREFIXED_NAME(crs_xxt_free )
12
13
#define crs_amg_setup PREFIXED_NAME(crs_amg_setup)
14
#define crs_amg_solve PREFIXED_NAME(crs_amg_solve)
15
#define crs_amg_stats PREFIXED_NAME(crs_amg_stats)
16
#define crs_amg_free PREFIXED_NAME(crs_amg_free )
17
18
struct
crs_data
;
19
20
struct
crs_data
*
crs_xxt_setup
(
21
uint n,
const
ulong *
id
,
22
uint nz,
const
uint *Ai,
const
uint *Aj,
const
double
*A,
23
uint
null_space
,
const
struct
comm
*
comm
);
24
void
crs_xxt_solve
(
double
*
x
,
struct
crs_data
*data,
double
*
b
);
25
void
crs_xxt_stats
(
struct
crs_data
*data);
26
void
crs_xxt_free
(
struct
crs_data
*data);
27
28
struct
crs_data
*
crs_amg_setup
(
29
uint n,
const
ulong *
id
,
30
uint nz,
const
uint *Ai,
const
uint *Aj,
const
double
*A,
31
uint
null_space
,
const
struct
comm
*
comm
,
32
const
char
*datafname, uint *ierr);
33
void
crs_amg_solve
(
double
*
x
,
struct
crs_data
*data,
double
*
b
);
34
void
crs_amg_stats
(
struct
crs_data
*data);
35
void
crs_amg_free
(
struct
crs_data
*data);
36
37
struct
crs_data
*
ccrs_hypre_setup
(
38
uint n,
const
ulong *
id
,
39
uint nz,
const
uint *Ai,
const
uint *Aj,
const
double
*Av,
40
const
uint nullspace,
const
struct
comm
*
comm
,
41
const
double
*param);
42
void
ccrs_hypre_solve
(
double
*
x
,
struct
crs_data
*data,
double
*
b
);
43
void
ccrs_hypre_free
(
struct
crs_data
*data);
44
45
#endif
ccrs_hypre_setup
struct crs_data * ccrs_hypre_setup(uint n, const ulong *id, uint nz, const uint *Ai, const uint *Aj, const double *Av, const uint nullspace, const struct comm *comm, const double *param)
Definition:
crs_hypre.c:424
crs_amg_free
#define crs_amg_free
Definition:
crs.h:16
crs_amg_setup
#define crs_amg_setup
Definition:
crs.h:13
crs_xxt_free
#define crs_xxt_free
Definition:
crs.h:11
ccrs_hypre_free
void ccrs_hypre_free(struct crs_data *data)
crs_amg_stats
#define crs_amg_stats
Definition:
crs.h:15
ccrs_hypre_solve
void ccrs_hypre_solve(double *x, struct crs_data *data, double *b)
crs_xxt_stats
#define crs_xxt_stats
Definition:
crs.h:10
crs_xxt_setup
#define crs_xxt_setup
Definition:
crs.h:8
crs_amg_solve
#define crs_amg_solve
Definition:
crs.h:14
crs_xxt_solve
#define crs_xxt_solve
Definition:
crs.h:9
crs_data
Definition:
crs_amg.c:111
crs_data::null_space
int null_space
Definition:
crs_amg.c:116
crs_data::comm
struct comm comm
Definition:
crs_amg.c:112
crs_data::x
double * x
Definition:
crs_amg.c:124
crs_data::b
double * b
Definition:
crs_amg.c:124
Nek5000
core
crs.h
Generated on Tue Jun 4 2024 12:44:42 for KTH framework for Nek5000 toolboxes; testing version by
1.9.1