25#include "point_kernel.hpp"
29#if BITPIT_ENABLE_MPI==1
44 :
PatchKernel(communicator, 0, adaptionMode, partitioningMode)
58#if BITPIT_ENABLE_MPI==1
76 :
PatchKernel(dimension, communicator, 0, adaptionMode, partitioningMode)
93#if BITPIT_ENABLE_MPI==1
112 :
PatchKernel(id, dimension, communicator, 0, adaptionMode, partitioningMode)
130void PointKernel::initialize()
197 const Cell &cell1 = m_cells[id1];
198 const Cell &cell2 = m_cells[id2];
220 const Cell &cell1 = m_cells[id1];
221 const Cell &cell2 = m_cells[id2];
231 double distance =
norm2(direction);
233 direction /= distance;
The Cell class defines the cells.
static ConstProxyVector< long > getVertexIds(ElementType type, const long *connectivity)
The PatchKernel class provides an interface for defining patches.
Vertex & getVertex(long id)
double evalCellSize(long id) const override
int getVolumeCodimension() const override
int getSurfaceCodimension() const override
PointKernel(MPI_Comm communicator, AdaptionMode adaptionMode, PartitioningMode partitioningMode)
virtual std::array< double, 3 > evalPointsDirection(long id1, long id2) const
int getLineCodimension() const override
virtual double evalPointsDistance(long id1, long id2) const
int getPointCodimension() const override
Metafunction for generating a list of elements that can be either stored in an external vectror or,...
The Vertex class defines the vertexs.
std::array< double, 3 > & getCoords()
double norm2(const std::array< T, d > &x)
#define BITPIT_UNUSED(variable)