5#ifndef IPPL_UNIFORM_CARTESIAN_H
6#define IPPL_UNIFORM_CARTESIAN_H
8#include "Meshes/CartesianCentering.h"
9#include "Meshes/Mesh.h"
13 template <
typename T,
unsigned Dim>
30 KOKKOS_INLINE_FUNCTION
void setMeshSpacing(
const vector_type& meshSpacing);
33 KOKKOS_INLINE_FUNCTION T getMeshSpacing(
unsigned dim)
const;
35 KOKKOS_INLINE_FUNCTION
const vector_type& getMeshSpacing()
const override;
41 KOKKOS_INLINE_FUNCTION
void updateCellVolume_m();
45 getVertexPosition(
const NDIndex<Dim>& ndi)
const override {
48 for (
unsigned int d = 0; d < Dim; d++) {
49 vertexPosition(d) = ndi[d].first() * meshSpacing_m[d] + this->origin_m(d);
52 return vertexPosition;
58 for (
unsigned int d = 0; d < Dim; d++)
59 vertexVertexSpacing[d] = meshSpacing_m[d] * ndi[d].length();
60 return vertexVertexSpacing;
70#include "Meshes/UniformCartesian.hpp"
Definition Centering.h:30