preCICE
Toggle main menu visibility
Loading...
Searching...
No Matches
src
testing
ParallelCouplingSchemeFixture.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
cplscheme/ParallelCouplingScheme.hpp
"
4
5
namespace
precice::testing
{
6
/*
7
* @brief A fixture that is used to access private functions of the ParallelCouplingScheme class.
8
*
9
* The fixture can be used to call private functions for individual testing.
10
*/
11
struct
ParallelCouplingSchemeFixture
{
12
static
bool
isImplicitCouplingScheme
(
cplscheme::ParallelCouplingScheme
&
cplscheme
);
13
14
static
cplscheme::CouplingData
*
getReceiveData
(
cplscheme::ParallelCouplingScheme
&
cplscheme
,
int
dataID);
15
16
static
cplscheme::CouplingData
*
getSendData
(
cplscheme::ParallelCouplingScheme
&
cplscheme
,
int
dataID);
17
18
static
void
setTimeWindows
(
cplscheme::ParallelCouplingScheme
&
cplscheme
,
int
timeWindows);
19
20
static
void
storeIteration
(
cplscheme::ParallelCouplingScheme
&
cplscheme
);
21
22
static
void
initializeAcceleration
(
cplscheme::ParallelCouplingScheme
&
cplscheme
);
23
24
static
void
moveToNextWindow
(
cplscheme::ParallelCouplingScheme
&
cplscheme
);
25
};
26
}
// namespace precice::testing
ParallelCouplingScheme.hpp
precice::cplscheme::CouplingData
Definition
CouplingData.hpp:12
precice::cplscheme::ParallelCouplingScheme
Coupling scheme for parallel coupling, i.e. simultaneous execution of two coupled participants.
Definition
ParallelCouplingScheme.hpp:26
precice::cplscheme
contains implementations of coupling schemes for coupled simulations.
Definition
BaseCouplingScheme.cpp:33
precice::testing
contains the testing framework.
Definition
helper.hpp:9
precice::testing::ParallelCouplingSchemeFixture
Definition
ParallelCouplingSchemeFixture.hpp:11
precice::testing::ParallelCouplingSchemeFixture::isImplicitCouplingScheme
static bool isImplicitCouplingScheme(cplscheme::ParallelCouplingScheme &cplscheme)
Definition
ParallelCouplingSchemeFixture.cpp:7
precice::testing::ParallelCouplingSchemeFixture::setTimeWindows
static void setTimeWindows(cplscheme::ParallelCouplingScheme &cplscheme, int timeWindows)
Definition
ParallelCouplingSchemeFixture.cpp:22
precice::testing::ParallelCouplingSchemeFixture::initializeAcceleration
static void initializeAcceleration(cplscheme::ParallelCouplingScheme &cplscheme)
Definition
ParallelCouplingSchemeFixture.cpp:32
precice::testing::ParallelCouplingSchemeFixture::getReceiveData
static cplscheme::CouplingData * getReceiveData(cplscheme::ParallelCouplingScheme &cplscheme, int dataID)
Definition
ParallelCouplingSchemeFixture.cpp:12
precice::testing::ParallelCouplingSchemeFixture::storeIteration
static void storeIteration(cplscheme::ParallelCouplingScheme &cplscheme)
Definition
ParallelCouplingSchemeFixture.cpp:27
precice::testing::ParallelCouplingSchemeFixture::getSendData
static cplscheme::CouplingData * getSendData(cplscheme::ParallelCouplingScheme &cplscheme, int dataID)
Definition
ParallelCouplingSchemeFixture.cpp:17
precice::testing::ParallelCouplingSchemeFixture::moveToNextWindow
static void moveToNextWindow(cplscheme::ParallelCouplingScheme &cplscheme)
Definition
ParallelCouplingSchemeFixture.cpp:39