Peano
Loading...
Searching...
No Matches
FWave.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 "WetDryState.h"
7#include "VariableShortcuts.h"
8
9#include "tarch/Assertions.h"
11#include "tarch/la/Vector.h"
12
51 #if defined(GPUOffloadingOMP)
52 #pragma omp declare target
53 #endif
54 static inline GPUCallableMethod
55 double fWave(
56 const double* const __restrict__ QR,
57 const double* const __restrict__ QL,
58 const double* const __restrict__ FR,
59 const double* const __restrict__ FL,
60 const double* const __restrict__ LR,
61 const double* const __restrict__ LL,
65 const double t,
66 const double dt,
67 const int normal,
68 double* const __restrict__ APDQ,
69 double* const __restrict__ AMDQ
71 #if defined(GPUOffloadingOMP)
72 #pragma omp end declare target
73 #endif
74} // namespace applications::exahype2::swe
75
76#include "FWave.cpph"
#define GPUCallableMethod
Definition accelerator.h:27
static GPUCallableMethod double fWave(const double *const __restrict__ QR, const double *const __restrict__ QL, const double *const __restrict__ FR, const double *const __restrict__ FL, const double *const __restrict__ LR, const double *const __restrict__ LL, const tarch::la::Vector< Dimensions, double > &xR, const tarch::la::Vector< Dimensions, double > &xL, const tarch::la::Vector< Dimensions, double > &h, const double t, const double dt, const int normal, double *const __restrict__ APDQ, double *const __restrict__ AMDQ) InlineMethod
F-Wave Riemann Solver for the Shallow Water Equation.
Simple vector class.
Definition Vector.h:159
#define InlineMethod
Generic identifier for inlined functions.
Definition tarch.h:97