Peano
Loading...
Searching...
No Matches
FrictionLaws.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
6 namespace FrictionLaws {
7 template <class T, class Shortcuts>
8 static inline GPU_CALLABLE_METHOD double maxEigenvalue(
9 const T* const NOALIAS Q,
10 const tarch::la::Vector<DIMENSIONS, double>& x,
11 const tarch::la::Vector<DIMENSIONS, double>& h,
12 const double t,
13 const double dt,
14 const int normal
15 );
16
17 template <class T, class Shortcuts, int NumberOfUnknowns>
18 static inline GPU_CALLABLE_METHOD void nonconservativeProduct(
19 const T* const NOALIAS Q,
20 const T* const NOALIAS deltaQ,
21 const tarch::la::Vector<DIMENSIONS, double>& x,
22 const tarch::la::Vector<DIMENSIONS, double>& h,
23 const double t,
24 const double dt,
25 const int normal,
26 T* const NOALIAS BTimesDeltaQ
27 );
28
29 template <class T, class Shortcuts, int NumberOfUnknowns, int NumberOfAuxiliaryVariables>
30 static inline GPU_CALLABLE_METHOD void sourceTermADERDG(
31 const T* const NOALIAS Q,
32 const T* const NOALIAS deltaQ,
33 const tarch::la::Vector<DIMENSIONS, double>& x,
34 const tarch::la::Vector<DIMENSIONS, double>& h,
35 const double t,
36 const double dt,
37 T* const NOALIAS S
38 );
39
40 template <class T, class Shortcuts, int NumberOfUnknowns, int NumberOfAuxiliaryVariables>
41 static inline GPU_CALLABLE_METHOD void sourceTermFV(
42 const T* const NOALIAS Q,
43 const T* const NOALIAS deltaQ,
44 const tarch::la::Vector<DIMENSIONS, double>& x,
45 const tarch::la::Vector<DIMENSIONS, double>& h,
46 const double t,
47 const double dt,
48 T* const NOALIAS S
49 );
50 } // namespace FrictionLaws
51} // namespace applications::exahype2::ShallowWater
52
53#include "FrictionLaws.cpph"
static GPU_CALLABLE_METHOD double maxEigenvalue(const T *const NOALIAS Q, const tarch::la::Vector< DIMENSIONS, double > &x, const tarch::la::Vector< DIMENSIONS, double > &h, const double t, const double dt, const int normal)
static GPU_CALLABLE_METHOD void nonconservativeProduct(const T *const NOALIAS Q, const T *const NOALIAS deltaQ, const tarch::la::Vector< DIMENSIONS, double > &x, const tarch::la::Vector< DIMENSIONS, double > &h, const double t, const double dt, const int normal, T *const NOALIAS BTimesDeltaQ)
static GPU_CALLABLE_METHOD void sourceTermADERDG(const T *const NOALIAS Q, const T *const NOALIAS deltaQ, const tarch::la::Vector< DIMENSIONS, double > &x, const tarch::la::Vector< DIMENSIONS, double > &h, const double t, const double dt, T *const NOALIAS S)
static GPU_CALLABLE_METHOD void sourceTermFV(const T *const NOALIAS Q, const T *const NOALIAS deltaQ, const tarch::la::Vector< DIMENSIONS, double > &x, const tarch::la::Vector< DIMENSIONS, double > &h, const double t, const double dt, T *const NOALIAS S)