IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
Mesh.hpp
Go to the documentation of this file.
1//
2// Class Mesh
3// The Mesh base class. Right now, this mainly acts as a standard base
4// class for all meshes so that other objects can register as users of
5// the mesh and can be notified if the mesh changes (e.g., it is rescaled
6// or restructured entirely).
7//
8namespace ippl {
9 template <typename T, unsigned Dim>
10 KOKKOS_INLINE_FUNCTION typename Mesh<T, Dim>::vector_type Mesh<T, Dim>::getOrigin() const {
11 return origin_m;
12 }
13
14 template <typename T, unsigned Dim>
15 KOKKOS_INLINE_FUNCTION void Mesh<T, Dim>::setOrigin(const vector_type& origin) {
16 origin_m = origin;
17 }
18
19 template <typename T, unsigned Dim>
20 KOKKOS_INLINE_FUNCTION const typename Mesh<T, Dim>::vector_type& Mesh<T, Dim>::getGridsize()
21 const {
22 return gridSizes_m;
23 }
24
25 template <typename T, unsigned Dim>
26 KOKKOS_INLINE_FUNCTION T Mesh<T, Dim>::getGridsize(size_t dim) const {
27 return gridSizes_m[dim];
28 }
29} // namespace ippl
Definition Archive.h:20
Vector< T, Dim > vector_type
Definition Mesh.h:22
KOKKOS_INLINE_FUNCTION vector_type getOrigin() const
Definition Mesh.hpp:10
KOKKOS_INLINE_FUNCTION void setOrigin(const vector_type &origin)
Definition Mesh.hpp:15
KOKKOS_INLINE_FUNCTION const vector_type & getGridsize() const
Definition Mesh.hpp:20
vector_type gridSizes_m
Definition Mesh.h:61
vector_type origin_m
Definition Mesh.h:60