-
Notifications
You must be signed in to change notification settings - Fork 4
/
stencil_methods.h
27 lines (20 loc) · 1.18 KB
/
stencil_methods.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
#pragma once
#include "definitions.h"
void applyStateOperator_stencil(const struct gridContext gc, const DTYPE *x,
const CTYPE *in, CTYPE *out);
void applyStateOperatorSubspace_halo(const struct gridContext gc, const int l,
const DTYPE *x, CTYPE *in, CTYPE *out);
void getComplianceAndSensetivity_halo(const struct gridContext gc,
const DTYPE *x, STYPE *u, DTYPE *c,
DTYPE *dcdx);
void projectToFinerGrid_halo(const struct gridContext gc,
/*in*/ const int l, /*in*/
const CTYPE *ucoarse, /*in*/
CTYPE *ufine /*out*/);
void projectToCoarserGrid_halo(const struct gridContext gc,
/*in*/ const int l, /*in*/
const CTYPE *ufine, /*in*/
CTYPE *ucoarse /*out*/);
void assembleInvertedMatrixDiagonalSubspace_halo(const struct gridContext gc,
const DTYPE *x, const int l,
MTYPE *diag);