MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
CartesianGridPoint< nDim > Class Template Reference

This class defines a grid point, grid cells consist of. More...

#include <cartesiangridpoint.h>

Public Member Functions

void allocateElements (void *memPointer, void *, MInt &)
 

Static Public Member Functions

static void init (MInt NotUsed(dimensions), MInt, MInt)
 
static MInt staticElementSize ()
 

Public Attributes

MFloatm_coordinates
 This member stores the coordinates of the point defining the grid point. More...
 
MIntm_cellIds
 This member stores the cellIds of adjacent Cells. More...
 
MInt m_noAdjacentCells
 

Static Private Attributes

static MFloatm_tmpPointer
 

Detailed Description

template<MInt nDim>
class CartesianGridPoint< nDim >

Definition at line 18 of file cartesiangridpoint.h.

Member Function Documentation

◆ allocateElements()

template<MInt nDim>
void CartesianGridPoint< nDim >::allocateElements ( void *  memPointer,
void *  ,
MInt  
)
inline

Definition at line 40 of file cartesiangridpoint.h.

40 {
41 m_tmpPointer = (MFloat*)memPointer;
43 m_tmpPointer += nDim;
45 };
static MFloat * m_tmpPointer
MInt * m_cellIds
This member stores the cellIds of adjacent Cells.
MFloat * m_coordinates
This member stores the coordinates of the point defining the grid point.
int32_t MInt
Definition: maiatypes.h:62
double MFloat
Definition: maiatypes.h:52

◆ init()

template<MInt nDim>
static void CartesianGridPoint< nDim >::init ( MInt   NotUseddimensions,
MInt  ,
MInt   
)
inlinestatic

Definition at line 23 of file cartesiangridpoint.h.

23{};

◆ staticElementSize()

template<MInt nDim>
static MInt CartesianGridPoint< nDim >::staticElementSize ( )
inlinestatic

Definition at line 37 of file cartesiangridpoint.h.

37{ return (sizeof(MFloat) * nDim + sizeof(MInt) * IPOW2(nDim)); }
constexpr MLong IPOW2(MInt x)

Member Data Documentation

◆ m_cellIds

template<MInt nDim>
MInt* CartesianGridPoint< nDim >::m_cellIds

Definition at line 33 of file cartesiangridpoint.h.

◆ m_coordinates

template<MInt nDim>
MFloat* CartesianGridPoint< nDim >::m_coordinates

Definition at line 28 of file cartesiangridpoint.h.

◆ m_noAdjacentCells

template<MInt nDim>
MInt CartesianGridPoint< nDim >::m_noAdjacentCells

Definition at line 35 of file cartesiangridpoint.h.

◆ m_tmpPointer

template<MInt nDim>
MFloat * CartesianGridPoint< nDim >::m_tmpPointer
staticprivate

Definition at line 20 of file cartesiangridpoint.h.


The documentation for this class was generated from the following files: