preCICE
v3.1.2
Loading...
Searching...
No Matches
src
com
tests
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)
11
{
12
bool
requiresInitialization =
false
;
13
bool
exchangeSubsteps =
true
;
14
return
std::make_shared<cplscheme::CouplingData>(std::move(data), std::move(mesh), requiresInitialization, exchangeSubsteps,
cplscheme::CouplingData::Direction::Send
);
15
}
16
}
// namespace precice::testing
CouplingData.hpp
precice::cplscheme::CouplingData::Direction::Send
@ Send
SharedPointer.hpp
memory
SharedPointer.hpp
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
std::shared_ptr< CouplingData >