IPPL API Reference
Independent Parallel Particle Layer C++ API
Loading...
Searching...
No Matches
GridPathSegmenter.h
1
#ifndef IPPL_GRIDPATH_SEGMENTER_H
2
#define IPPL_GRIDPATH_SEGMENTER_H
3
#include <array>
4
5
namespace
ippl
{
6
7
template
<
unsigned
Dim,
typename
T>
8
struct
Segment
{
9
Vector<T,Dim>
p0, p1;
10
};
11
12
struct
DefaultCellCrossingRule
{};
13
14
template
<
unsigned
Dim,
typename
T,
typename
Rule = DefaultCellCrossingRule>
15
struct
GridPathSegmenter
{
16
17
static
KOKKOS_INLINE_FUNCTION
18
Kokkos::Array<Segment<Dim,T>, Dim+1>
19
split(
const
Vector<T, Dim>
& A,
20
const
Vector<T, Dim>
& B,
21
const
Vector<T, Dim>
& origin,
22
const
Vector<T, Dim>
& h);
23
};
24
25
}
// namespace ippl
26
27
#include "GridPathSegmenter.hpp"
28
29
#endif
ippl::Vector
Definition
Vector.h:23
ippl
Definition
Archive.h:20
ippl::DefaultCellCrossingRule
Definition
GridPathSegmenter.h:12
ippl::GridPathSegmenter
Definition
GridPathSegmenter.h:15
ippl::Segment
Definition
GridPathSegmenter.h:8
ippl-src
src
FEM
GridPathSegmenter.h
Generated by
1.9.8