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