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 78 : typename Mesh<T, Dim>::vector_type Mesh<T, Dim>::getOrigin() const {
11 78 : return origin_m;
12 : }
13 :
14 : template <typename T, unsigned Dim>
15 380 : void Mesh<T, Dim>::setOrigin(const vector_type& origin) {
16 380 : origin_m = origin;
17 380 : }
18 :
19 : template <typename T, unsigned Dim>
20 : const typename Mesh<T, Dim>::vector_type& Mesh<T, Dim>::getGridsize() const {
21 : return gridSizes_m;
22 : }
23 :
24 : template <typename T, unsigned Dim>
25 126 : T Mesh<T, Dim>::getGridsize(size_t dim) const {
26 126 : return gridSizes_m[dim];
27 : }
28 : } // namespace ippl
|