preCICE v3.1.2
Loading...
Searching...
No Matches
NearestNeighborMapping.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5#include "logging/Logger.hpp"
7
8namespace precice {
9namespace mapping {
10
13public:
20 NearestNeighborMapping(Constraint constraint, int dimensions);
21
23 std::string getName() const final override;
24
25protected:
27 void mapConservative(const time::Sample &inData, Eigen::VectorXd &outData) final override;
28
30 void mapConsistent(const time::Sample &inData, Eigen::VectorXd &outData) final override;
31};
32
33} // namespace mapping
34} // namespace precice
Constraint
Specifies additional constraints for a mapping.
Definition Mapping.hpp:29
Mapping using nearest neighboring vertices.
std::string getName() const final override
name of the nn mapping
void mapConsistent(const time::Sample &inData, Eigen::VectorXd &outData) final override
Maps data using a consistent constraint.
NearestNeighborMapping(Constraint constraint, int dimensions)
Constructor.
void mapConservative(const time::Sample &inData, Eigen::VectorXd &outData) final override
Maps data using a conservative constraint.
Main namespace of the precice library.