Peano
Loading...
Searching...
No Matches
routines_curvilinear.h
Go to the documentation of this file.
1
namespace
Numerics
{
2
template
<
class
Shortcuts>
3
inline
void
get_normals
(
const
double
* Q,
int
direction,
double
& norm,
double
* n){
4
Shortcuts
s
;
5
double
v_x = Q[
s
.metric_derivative + 0 +
direction
* 3];
6
double
v_y = Q[
s
.metric_derivative + 1 +
direction
* 3];
7
double
v_z = Q[
s
.metric_derivative + 2 +
direction
* 3];
8
9
norm = std::sqrt(v_x*v_x + v_y*v_y + v_z*v_z);
10
n
[0] = v_x/norm;
11
n
[1] = v_y/norm;
12
n
[2] = v_z/norm;
13
}
14
}
Numerics
Definition
anisotropic.h:2
Numerics::get_normals
void get_normals(const double *Q, int direction, double &norm, double *n)
Definition
routines_cartesian.h:3
find_missing_particleIDs.n
n
Definition
find_missing_particleIDs.py:30
plots_llvm_paper_likwid.direction
direction
Definition
plots_llvm_paper_likwid.py:188
postprocessing.treeReaderWithSplit.s
s
Definition
treeReaderWithSplit.py:157
applications
exahype2
exaseis
ExaSeis_core
Numerics
routines_curvilinear.h
Generated on Tue Nov 3 2026 16:05:41 for Peano by
1.9.8