Go to the documentation of this file.
23 #ifndef __FINLEY_NODEMAPPING_H__
24 #define __FINLEY_NODEMAPPING_H__
41 void assign(
const std::vector<index_t>& theTarget,
index_t unused)
43 if (theTarget.empty())
46 std::pair<index_t,index_t> range(
48 if (range.first < 0) {
52 const dim_t numTargets = range.first<=range.second ? range.second+1 : 0;
53 target.assign(theTarget.begin(), theTarget.end());
55 map.assign(numTargets, -1);
61 for (
index_t i=0; i<targetSize; ++i) {
67 for (
index_t i=0; i<numTargets; ++i) {
82 std::vector<index_t>
target;
84 std::vector<index_t>
map;
89 #endif // __FINLEY_NODEMAPPING_H__
IndexPair getFlaggedMinMaxInt(dim_t N, const index_t *values, index_t ignore)
Definition: finley/src/Util.cpp:333
void assign(const std::vector< index_t > &theTarget, index_t unused)
Definition: finley/src/NodeMapping.h:69
void clear()
resets both map and target.
Definition: finley/src/NodeMapping.h:60
std::vector< index_t > target
target[i] defines the target of FEM node i=0,...,numNodes-1
Definition: finley/src/NodeMapping.h:110
index_t dim_t
Definition: DataTypes.h:93
std::vector< index_t > map
maps the target nodes back to the FEM nodes: target[map[i]]=i
Definition: finley/src/NodeMapping.h:112
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:88
A suite of factory methods for creating various finley domains.
Definition: finley/src/Assemble.h:32
An exception class that signals an invalid argument value.
Definition: EsysException.h:103
dim_t getNumTargets() const
returns the number of target nodes (number of items in the map array)
Definition: finley/src/NodeMapping.h:107