preCICE v3.2.0
Loading...
Searching...
No Matches
ImplicitData.cpp
Go to the documentation of this file.
2#include "utils/assertion.hpp"
3
4namespace precice::cplscheme {
5
7{
8 PRECICE_ASSERT(entries.count(did) == 0);
9 entries[did] = toKeep;
10}
11
13{
14 return entries.count(did) > 0;
15}
16
18{
20 return entries.at(did);
21}
22
23} // namespace precice::cplscheme
#define PRECICE_ASSERT(...)
Definition assertion.hpp:85
contains implementations of coupling schemes for coupled simulations.
int DataID
Definition Types.hpp:25
bool contains(DataID did) const
bool toKeep(DataID did) const
void add(DataID did, bool toKeep)
std::map< DataID, bool > entries