22 #ifndef __FINLEY_NODEMAPPING_H__
23 #define __FINLEY_NODEMAPPING_H__
40 void assign(
const std::vector<int>& theTarget,
int unused)
42 std::pair<int,int> range(
44 if (range.first < 0) {
49 const int numTargets = range.first<=range.second ? range.second+1 : 0;
50 target.assign(theTarget.begin(), theTarget.end());
51 map.assign(numTargets, -1);
56 for (
int i=0; i<
target.size(); ++i) {
62 for (
int i=0; i<numTargets; ++i) {
81 #endif // __FINLEY_NODEMAPPING_H__
void clear()
resets both map and target.
Definition: finley/src/NodeMapping.h:31
void assign(const std::vector< int > &theTarget, int unused)
Definition: finley/src/NodeMapping.h:40
void setError(ErrorCodeType err, const char *msg)
sets an error
Definition: Finley.cpp:43
std::vector< int > target
target[i] defines the target of FEM node i=0,...,numNodes-1
Definition: finley/src/NodeMapping.h:74
Definition: finley/src/NodeMapping.h:29
int getNumTargets() const
returns the number of target nodes (number of items in the map array)
Definition: finley/src/NodeMapping.h:71
std::pair< int, int > getFlaggedMinMaxInt(int N, const int *values, int ignore)
Definition: finley/src/Util.cpp:306
std::vector< int > map
maps the target nodes back to the FEM nodes: target[map[i]]=i
Definition: finley/src/NodeMapping.h:76