MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
cartesiangridpoint.h
Go to the documentation of this file.
1// Copyright (C) 2024 The m-AIA AUTHORS
2//
3// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4//
5// SPDX-License-Identifier: LGPL-3.0-only
6
7#ifndef CARTESIANGRIDPOINT_H
8#define CARTESIANGRIDPOINT_H
9
11#include "INCLUDE/maiamacro.h"
12#include "INCLUDE/maiatypes.h"
13
17template <MInt nDim>
19 private:
21
22 public:
23 static void init(MInt NotUsed(dimensions), MInt /*distributions*/, MInt /*maxSize*/){};
24
29
34
36
37 static MInt staticElementSize() { return (sizeof(MFloat) * nDim + sizeof(MInt) * IPOW2(nDim)); }
38
39
40 void allocateElements(void* memPointer, void* /*dummy*/, MInt& /*dummy2*/) {
41 m_tmpPointer = (MFloat*)memPointer;
43 m_tmpPointer += nDim;
45 };
46};
47#endif // CARTESIANGRIDPOINT_H
This class defines a grid point, grid cells consist of.
void allocateElements(void *memPointer, void *, MInt &)
static MInt staticElementSize()
static MFloat * m_tmpPointer
MInt * m_cellIds
This member stores the cellIds of adjacent Cells.
static void init(MInt NotUsed(dimensions), MInt, MInt)
MFloat * m_coordinates
This member stores the coordinates of the point defining the grid point.
constexpr MLong IPOW2(MInt x)
int32_t MInt
Definition: maiatypes.h:62
double MFloat
Definition: maiatypes.h:52