preCICE
v3.2.0
Loading...
Searching...
No Matches
src
acceleration
test
helper.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
memory
>
4
5
#include "
cplscheme/CouplingData.hpp
"
6
#include "
cplscheme/SharedPointer.hpp
"
7
#include "
mesh/SharedPointer.hpp
"
8
9
namespace
precice::testing
{
10
inline
cplscheme::PtrCouplingData
makeCouplingData
(
mesh::PtrData
data,
mesh::PtrMesh
mesh
,
bool
exchangeSubsteps)
11
{
12
bool
requiresInitialization =
false
;
13
return
std::make_shared<cplscheme::CouplingData>
(std::move(data), std::move(
mesh
), requiresInitialization, exchangeSubsteps,
cplscheme::CouplingData::Direction::Send
);
14
}
15
}
// namespace precice::testing
CouplingData.hpp
precice::cplscheme::CouplingData::Direction::Send
@ Send
Definition
CouplingData.hpp:14
SharedPointer.hpp
std::make_shared
T make_shared(T... args)
memory
SharedPointer.hpp
precice::cplscheme::PtrCouplingData
std::shared_ptr< CouplingData > PtrCouplingData
Definition
SharedPointer.hpp:14
precice::mesh
provides Mesh, Data and primitives.
Definition
ScaleActionTest.cpp:20
precice::mesh::PtrData
std::shared_ptr< Data > PtrData
Definition
SharedPointer.hpp:13
precice::mesh::PtrMesh
std::shared_ptr< Mesh > PtrMesh
Definition
SharedPointer.hpp:15
precice::testing
contains the testing framework.
Definition
helper.hpp:9
precice::testing::makeCouplingData
cplscheme::PtrCouplingData makeCouplingData(mesh::PtrData data, mesh::PtrMesh mesh, bool exchangeSubsteps)
Definition
helper.hpp:10