Peano
Loading...
Searching...
No Matches
Elastic.h
Go to the documentation of this file.
1// This file is part of the ExaHyPE2 project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5#include "Constants.h"
6#include "VariableShortcuts.h"
7
8#include "tarch/Assertions.h"
10#include "tarch/la/Vector.h"
11
13 #if defined(GPUOffloadingOMP)
14 #pragma omp declare target
15 #endif
16 static inline GPUCallableMethod
18 const double* const __restrict__ Q,
21 const double t,
22 const double dt,
23 const int normal,
24 double* const __restrict__ maxEigenvalue
26 #if defined(GPUOffloadingOMP)
27 #pragma omp end declare target
28 #endif
29
30 #if defined(GPUOffloadingOMP)
31 #pragma omp declare target
32 #endif
33 static inline GPUCallableMethod
34 void flux(
35 const double* const __restrict__ Q,
38 const double t,
39 const double dt,
40 const int normal,
41 double* const __restrict__ F
43 #if defined(GPUOffloadingOMP)
44 #pragma omp end declare target
45 #endif
46
47 #if defined(GPUOffloadingOMP)
48 #pragma omp declare target
49 #endif
50 static inline GPUCallableMethod
52 const double* const __restrict__ Q,
55 const double t,
56 const double dt,
57 double* const __restrict__ S
59 #if defined(GPUOffloadingOMP)
60 #pragma omp end declare target
61 #endif
62} // namespace applications::exahype2::elastic
63
64#include "Elastic.cpph"
#define GPUCallableMethod
Definition accelerator.h:27
static GPUCallableMethod void maxEigenvalue(const double *const __restrict__ Q, const tarch::la::Vector< Dimensions, double > &x, const tarch::la::Vector< Dimensions, double > &h, const double t, const double dt, const int normal, double *const __restrict__ maxEigenvalue) InlineMethod
static GPUCallableMethod void sourceTerm(const double *const __restrict__ Q, const tarch::la::Vector< Dimensions, double > &x, const tarch::la::Vector< Dimensions, double > &h, const double t, const double dt, double *const __restrict__ S) InlineMethod
Simple vector class.
Definition Vector.h:159
#define InlineMethod
Generic identifier for inlined functions.
Definition tarch.h:97