MAIA
bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
fvstructuredcomm.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 "
fvstructuredcomm.h
"
8
#include "
INCLUDE/maiatypes.h
"
9
#include "
enums.h
"
10
#include "
globals.h
"
11
12
template
<MInt nDim>
13
StructuredComm<nDim>::StructuredComm
(
const
MInt
noVars_,
14
MFloat
*
const
*
const
variables_,
15
const
MInt
noCells_,
16
const
MInt
noPoints_,
17
const
StructuredCommType
commType_)
18
: noVars(noVars_), variables(variables_), noCells(noCells_), noPoints(noPoints_), commType(commType_) {
19
cellBufferSize
=
noVars
*
noCells
;
20
pointBufferSize
= nDim *
noPoints
;
21
22
cellBuffer
= std::make_unique<MFloat[]>(
mMax
(
cellBufferSize
, 0));
23
pointBuffer
= std::make_unique<MFloat[]>(
mMax
(
pointBufferSize
, 0));
24
25
// mAlloc(cellBuffer, cellBufferSize, "cellBuffer", F0, AT_);
26
// mAlloc(pointBuffer, pointBufferSize, "cellBuffer", F0, AT_);
27
28
mpi_request
= MPI_REQUEST_NULL;
29
}
30
31
// template <MInt nDim>
32
// StructuredComm<nDim>::~StructuredComm() {
33
// mDeallocate(cellBuffer);
34
// mDeallocate(pointBuffer);
35
// }
36
37
template
class
StructuredComm<2>
;
38
template
class
StructuredComm<3>
;
StructuredComm
Definition:
fvstructuredcomm.h:19
StructuredComm::mpi_request
MPI_Request mpi_request
Definition:
fvstructuredcomm.h:43
StructuredComm::pointBuffer
std::unique_ptr< MFloat[]> pointBuffer
Definition:
fvstructuredcomm.h:37
StructuredComm::pointBufferSize
MInt pointBufferSize
Definition:
fvstructuredcomm.h:34
StructuredComm::cellBuffer
std::unique_ptr< MFloat[]> cellBuffer
Definition:
fvstructuredcomm.h:36
StructuredComm::noVars
const MInt noVars
Definition:
fvstructuredcomm.h:24
StructuredComm::cellBufferSize
MInt cellBufferSize
Definition:
fvstructuredcomm.h:33
StructuredComm::StructuredComm
StructuredComm(const MInt, MFloat *const *const, const MInt, const MInt, const StructuredCommType)
Definition:
fvstructuredcomm.cpp:13
StructuredComm::noCells
const MInt noCells
Definition:
fvstructuredcomm.h:26
StructuredComm::noPoints
const MInt noPoints
Definition:
fvstructuredcomm.h:27
enums.h
StructuredCommType
StructuredCommType
Definition:
enums.h:343
mMax
constexpr T mMax(const T &x, const T &y)
Definition:
functions.h:94
fvstructuredcomm.h
globals.h
maiatypes.h
MInt
int32_t MInt
Definition:
maiatypes.h:62
MFloat
double MFloat
Definition:
maiatypes.h:52
home
gitlab-runner
scratch
builds
oxpnswJ6
1
aia
m-AIA
m-AIA
src
FV
fvstructuredcomm.cpp
Generated on Sun Jun 16 2024 23:44:42 for MAIA by
1.9.5