Peano
MGCCZ4Kernels.h
Go to the documentation of this file.
1 //
2 // ExaHyPE2 MGCCZ4 implementation
3 //
4 #ifndef _examples_exahype2_mgccz4_MGCCZ4_Kernels_H_
5 #define _examples_exahype2_mgccz4_MGCCZ4_Kernels_H_
6 
7 
8 namespace examples {
9  namespace exahype2 {
10  namespace mgccz4 {
11  #if defined(WITH_GPU_OMP_TARGET)
12  #pragma omp declare target
13  #endif
14  void ncp(double* BgradQ, const double* const Q, const double* const gradQSerialised, const int normal,
15  const int MGCCZ4LapseType,
16  const double MGCCZ4ds,
17  const double MGCCZ4c,
18  const double MGCCZ4e,
19  const double MGCCZ4f,
20  const double MGCCZ4bs,
21  const double MGCCZ4sk,
22  const double MGCCZ4xi,
23  const double MGCCZ4mu);
24  #if defined(WITH_GPU_OMP_TARGET)
25  #pragma omp end declare target
26  #endif
27 
28  #if defined(WITH_GPU_OMP_TARGET)
29  #pragma omp declare target
30  #endif
31  void source(double* S, const double* const Q,
32  const int MGCCZ4LapseType,
33  const double MGCCZ4ds,
34  const double MGCCZ4c,
35  const double MGCCZ4e,
36  const double MGCCZ4f,
37  const double MGCCZ4bs,
38  const double MGCCZ4sk,
39  const double MGCCZ4xi,
40  const double MGCCZ4itau,
41  const double MGCCZ4eta,
42  const double MGCCZ4k1,
43  const double MGCCZ4k2,
44  const double MGCCZ4k3);
45  #if defined(WITH_GPU_OMP_TARGET)
46  #pragma omp end declare target
47  #endif
48 
49  #if defined(WITH_GPU_OMP_TARGET)
50  #pragma omp declare target
51  #endif
52  void admconstraints(double* constraints, const double* const Q, const double* const gradQSerialised);
53  #if defined(WITH_GPU_OMP_TARGET)
54  #pragma omp end declare target
55  #endif
56 
57  //#if defined(WITH_GPU_OMP_TARGET)
58  //#pragma omp declare target
59  //#endif
60  //void eigenvalues(double* lambda, const double* const Q, const int normal);
61  //#if defined(WITH_GPU_OMP_TARGET)
62  //#pragma omp end declare target
63  //#endif
64 
65  #if defined(WITH_GPU_OMP_TARGET)
66  #pragma omp declare target
67  #endif
68  void enforceMGCCZ4constraints(double * luh);
69  #if defined(WITH_GPU_OMP_TARGET)
70  #pragma omp end declare target
71  #endif
72  }
73  }
74 }
75 
76 
77 
78 #endif
79 
void ncp(double *BgradQ, const double *const Q, const double *const gradQSerialised, const int normal, const int MGCCZ4LapseType, const double MGCCZ4ds, const double MGCCZ4c, const double MGCCZ4e, const double MGCCZ4f, const double MGCCZ4bs, const double MGCCZ4sk, const double MGCCZ4xi, const double MGCCZ4mu)
void source(double *S, const double *const Q, const int MGCCZ4LapseType, const double MGCCZ4ds, const double MGCCZ4c, const double MGCCZ4e, const double MGCCZ4f, const double MGCCZ4bs, const double MGCCZ4sk, const double MGCCZ4xi, const double MGCCZ4itau, const double MGCCZ4eta, const double MGCCZ4k1, const double MGCCZ4k2, const double MGCCZ4k3)
void admconstraints(double *constraints, const double *const Q, const double *const gradQSerialised)
void enforceMGCCZ4constraints(double *luh)
Definition: mgccz4.py:1