blob: 3bb97aa797f2d68ada9a89ee7161015b4aa61771 (
plain)
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
48
49
|
#ifndef MAXIMAL_SLICING_AXI_H
#define MAXIMAL_SLICING_AXI_H
#include <inttypes.h>
#include <cl.h>
#include "cctk.h"
#include "ms_solve.h"
#define SCALE_FACTOR scale_factor
extern double scale_factor;
/* precomputed values for a given refined grid */
typedef struct CoordPatch {
CCTK_REAL origin[3];
CCTK_INT delta[3];
CCTK_INT size[3];
// basis values on the grid
double *basis_val_r;
double *basis_val_z;
double *transform_z;
double *transform_matrix;
double *transform_matrix1;
double *transform_tmp;
double *one;
int y_idx;
} CoordPatch;
typedef struct MaximalSlicingContext {
MSSolver *solver;
cGH *gh;
uint64_t grid_expand_count;
uint64_t grid_expand_time;
CoordPatch *patches;
int nb_patches;
} MaximalSlicingContext;
int msa_maximal_solve(MaximalSlicingContext *ms);
#endif /* MAXIMAL_SLICING_AXI_H */
|