Peano
Loading...
Searching...
No Matches
Functors.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 "tarch/la/Vector.h"
8
9#include <functional>
10
11namespace exahype2 {
12 namespace fd {
13 typedef std::function< void(
14 const double * __restrict__ Q,
17 double t,
18 double dt,
19 double * __restrict__ AlgeSrc
20 ) > Source;
21
22 typedef std::function< void(
23 const double * __restrict__ Q,
26 double t,
27 double dt,
28 int normal,
29 double * __restrict__ F
30 ) > Flux;
31
32 typedef std::function< void(
33 const double * __restrict__ Q,
34 const double * __restrict__ deltaQ,
37 double t,
38 double dt,
39 int normal,
40 double * __restrict__ DiffSrc
42
46 typedef std::function< double(
47 const double * __restrict__ Q,
50 double t,
51 double dt,
52 int normal
54 }
55}
std::function< void(const double *__restrict__ Q, const tarch::la::Vector< Dimensions, double > &gridCellX, const tarch::la::Vector< Dimensions, double > &gridCellH, double t, double dt, double *__restrict__ AlgeSrc) Source)
Definition Functors.h:20
std::function< void(const double *__restrict__ Q, const double *__restrict__ deltaQ, const tarch::la::Vector< Dimensions, double > &gridCellX, const tarch::la::Vector< Dimensions, double > &gridCellH, double t, double dt, int normal, double *__restrict__ DiffSrc) NonconservativeProduct)
Definition Functors.h:41
std::function< void(const double *__restrict__ Q, const tarch::la::Vector< Dimensions, double > &faceCentre, const tarch::la::Vector< Dimensions, double > &gridCellH, double t, double dt, int normal, double *__restrict__ F) Flux)
Definition Functors.h:30
std::function< double(const double *__restrict__ Q, const tarch::la::Vector< Dimensions, double > &gridCellX, const tarch::la::Vector< Dimensions, double > &gridCellH, double t, double dt, int normal) MaxEigenvalue)
The max eigenvalue is used if and only if you have adaptive time stepping.
Definition Functors.h:53
For the generic kernels that I use here most of the time.
Definition CellAccess.h:13
Simple vector class.
Definition Vector.h:150