preCICE v3.1.2
Loading...
Searching...
No Matches
BarycentricBaseMapping.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4#include "logging/Logger.hpp"
5#include "mapping/Mapping.hpp"
7
8namespace precice {
9namespace mapping {
10
16public:
17 BarycentricBaseMapping(Constraint constraint, int dimensions);
18
20 void clear() final override;
21
22 void tagMeshFirstRound() final override;
23 void tagMeshSecondRound() final override;
24
25private:
26 logging::Logger _log{"mapping::BarycentricBaseMapping"};
27
28protected:
30 void mapConservative(const time::Sample &inData, Eigen::VectorXd &outData) override;
31
33 void mapConsistent(const time::Sample &inData, Eigen::VectorXd &outData) override;
34
36};
37
38} // namespace mapping
39} // namespace precice
This class provides a lightweight logger.
Definition Logger.hpp:16
Base class for interpolation based mappings, where mapping is done using a geometry-based linear comb...
void tagMeshFirstRound() final override
Method used by partition. Tags vertices that could be owned by this rank.
void clear() final override
Removes a computed mapping.
void mapConsistent(const time::Sample &inData, Eigen::VectorXd &outData) override
Maps data using a consistent constraint.
void tagMeshSecondRound() final override
Method used by partition. Tags vertices that can be filtered out.
BarycentricBaseMapping(Constraint constraint, int dimensions)
void mapConservative(const time::Sample &inData, Eigen::VectorXd &outData) override
Maps data using a conservative constraint.
Abstract base class for mapping of data from one mesh to another.
Definition Mapping.hpp:15
Constraint
Specifies additional constraints for a mapping.
Definition Mapping.hpp:29
Main namespace of the precice library.