preCICE
Loading...
Searching...
No Matches
MeshContext.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4#include "MappingContext.hpp"
5#include "SharedPointer.hpp"
7#include "mapping/Mapping.hpp"
10
11namespace precice::impl {
12
21
24
27
29 std::vector<MappingContext> fromMappingContexts;
30
32 std::vector<MappingContext> toMappingContexts;
33
35 {
36 for (auto &mc : fromMappingContexts) {
37 mc.mapping->clear();
38 }
39 for (auto &mc : toMappingContexts) {
40 mc.mapping->clear();
41 }
42 }
43};
44
46{
47 meshRequirement = std::max(meshRequirement, requirement);
48}
49
50} // namespace precice::impl
MeshRequirement
Specifies requirements for the input and output meshes of a mapping.
Definition Mapping.hpp:46
std::shared_ptr< Mesh > PtrMesh
mesh::PtrMesh mesh
Mesh holding the geometry data structure.
mapping::Mapping::MeshRequirement meshRequirement
Determines which mesh type has to be provided by the accessor.
std::vector< MappingContext > toMappingContexts
Mappings used when mapping data to the mesh. Can be empty.
std::vector< MappingContext > fromMappingContexts
Mappings used when mapping data from the mesh. Can be empty.
void require(mapping::Mapping::MeshRequirement requirement)