MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
lbinterfacecell.cpp
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#include "lbinterfacecell.h"
8
11
12#if defined(MAIA_CLANG_COMPILER)
13#pragma GCC diagnostic push
14#pragma GCC diagnostic ignored "-Wcast-align"
15#endif
16
17void LbInterfaceCell::allocateElements(void* /*memPointer*/, void* basePointer, MInt cellId) {
18 // TRACE();
19 // MFloat * tmpPointer = (MFloat *)memPointer;
20 MFloat* tmpPointerDataBase = (MFloat*)basePointer;
21 MFloat* tmpPointer;
22
23 tmpPointer = (MFloat*)((MInt*)tmpPointerDataBase + m_noInterpolationNeighbors * cellId);
24 m_interpolationNeighbors = (MInt*)tmpPointer;
25 tmpPointerDataBase = (MFloat*)((MInt*)tmpPointerDataBase + m_noInterpolationNeighbors * m_maxNoCells);
26
27 tmpPointer = tmpPointerDataBase + m_noInterpolationNeighbors * cellId;
28 m_interpolationCoefficients = tmpPointer;
29 tmpPointerDataBase = tmpPointerDataBase + m_noInterpolationNeighbors * m_maxNoCells;
30}
31
32#if defined(MAIA_CLANG_COMPILER)
33#pragma GCC diagnostic pop
34#endif
void allocateElements(void *, void *, MInt cellId)
MFloat * m_interpolationCoefficients
static MInt m_maxNoCells
MInt * m_interpolationNeighbors
static MInt m_noInterpolationNeighbors
int32_t MInt
Definition: maiatypes.h:62
double MFloat
Definition: maiatypes.h:52