MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
cartesianpointbasedcell.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 POINTBASEDCELL_H
8#define POINTBASEDCELL_H
9
10#include "INCLUDE/maiatypes.h"
11#include "UTIL/debug.h"
12
20template <MInt nDim>
22 public:
23 static void init(MInt NotUsed(dimensions), MInt /*distributions*/, MInt /*distributions1*/, MInt /*maxNoCells*/){
24 // TRACE();
25 };
26
29
35
40 static MInt staticElementSize() { return (sizeof(MInt) * (nDim - 1) * 4); }
41 void allocateElements(void* memPointer, void* /*basePointer*/, MInt /*cellId*/) {
42 // TRACE();
43
44 m_pointIds = (MInt*)memPointer;
45 };
46};
47#endif // POINTBASEDCELL_H
This class defines a grid cell which is a internal data structure for cartesian cells needed for an e...
MInt * m_pointIds
This member stores the ids of the grid points the grid cell conists of.
MInt m_cellId
This member stores the id of the cartesian cell in the collector of all cartesian cells the grid cell...
static MInt staticElementSize()
void allocateElements(void *memPointer, void *, MInt)
static void init(MInt NotUsed(dimensions), MInt, MInt, MInt)
int32_t MInt
Definition: maiatypes.h:62