Peano 4
Loading...
Searching...
No Matches
AderUtils.cpp
Go to the documentation of this file.
1#include "AderUtils.h"
2#include "tarch/Assertions.h"
3#include "tarch/la/la.h"
4
5
7 const tarch::la::Vector<2,double>& cellCentre,
8 const tarch::la::Vector<2,double>& cellSize,
9 const tarch::la::Vector<2,int>& index,
10 int polynomialOrder,
11 const double* __restrict__ quadraturePoints
12) {
14
15 result(0) = quadraturePoints[index(0)];
16 result(1) = quadraturePoints[index(1)];
17
18 return tarch::la::multiplyComponents(result,cellSize) + cellCentre - 0.5*cellSize;
19}
20
21
23 const tarch::la::Vector<3,double>& cellCentre,
24 const tarch::la::Vector<3,double>& cellSize,
25 const tarch::la::Vector<3,int>& index,
26 int polynomialOrder,
27 const double* __restrict__ quadraturePoints
28) {
30
31 result(0) = quadraturePoints[index(0)];
32 result(1) = quadraturePoints[index(1)];
33 result(2) = quadraturePoints[index(2)];
34
35 return tarch::la::multiplyComponents(result,cellSize) + cellCentre - 0.5*cellSize;
36}
37
tarch::la::Vector< 2, double > getQuadraturePoint(const tarch::la::Vector< 2, double > &cellCentre, const tarch::la::Vector< 2, double > &cellSize, const tarch::la::Vector< 2, int > &index, int polynomialOrder, const double *__restrict__ quadraturePoints)
In ExaHyPE's Finite Volume setup, a cell hosts a patch of Finite Volumes.
Definition AderUtils.cpp:6
Matrix< Rows, Cols, Scalar > multiplyComponents(const Matrix< Rows, X, Scalar > &lhs, const Matrix< X, Cols, Scalar > &rhs)
Simple vector class.
Definition Vector.h:134