MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
fvstructuredzonalbc.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
8
9
10StructuredZonalComm::StructuredZonalComm(const MInt _noCells, const MInt _localId, const MInt _noVars)
11 : bufferSize(_noCells), localId(_localId), noVars(_noVars) {
12 mAlloc(mapCellId, bufferSize, "bufferMapCellId", -1, AT_);
13 mAlloc(buffer, noVars * bufferSize, "buffer", -1.0, AT_);
14}
15
17 : receiverBlockId(-1),
18 noCellsGlobalBC(0),
19 noCellsLocalBC(0),
20 hasLocalBCMap(false),
21 hasSTG(false),
22 noGlobalRcvDomains(0),
23 noGlobalSndDomains(0),
24 noSndNghbrDomains(0),
25 noRcvNghbrDomains(0),
26 noZonalVariables(0) {
27 mAlloc(start, 3, "start", 0, AT_);
28 mAlloc(end, 3, "end", 0, AT_);
29}
30
void mAlloc(T *&a, const MLong N, const MString &objectName, MString function)
allocates memory for one-dimensional array 'a' of size N
Definition: alloc.h:173
StructuredZonalComm(const MInt, const MInt, const MInt)
int32_t MInt
Definition: maiatypes.h:62