Line data Source code
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 : //
8 : namespace ippl {
9 : template <typename T, unsigned Dim>
10 276 : KOKKOS_INLINE_FUNCTION typename Mesh<T, Dim>::vector_type Mesh<T, Dim>::getOrigin() const {
11 276 : return origin_m;
12 : }
13 :
14 : template <typename T, unsigned Dim>
15 578 : KOKKOS_INLINE_FUNCTION void Mesh<T, Dim>::setOrigin(const vector_type& origin) {
16 578 : origin_m = origin;
17 578 : }
18 :
19 : template <typename T, unsigned Dim>
20 198 : KOKKOS_INLINE_FUNCTION const typename Mesh<T, Dim>::vector_type& Mesh<T, Dim>::getGridsize()
21 : const {
22 198 : return gridSizes_m;
23 : }
24 :
25 : template <typename T, unsigned Dim>
26 130 : KOKKOS_INLINE_FUNCTION T Mesh<T, Dim>::getGridsize(size_t dim) const {
27 130 : return gridSizes_m[dim];
28 : }
29 : } // namespace ippl
|