LCOV - code coverage report
Current view: top level - src/Meshes - Mesh.hpp (source / functions) Coverage Total Hit
Test: report.info Lines: 100.0 % 9 9
Test Date: 2025-05-21 12:05:18 Functions: 100.0 % 42 42

            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
        

Generated by: LCOV version 2.0-1