22 #ifndef __FINLEY_NODEMAPPING_H__ 23 #define __FINLEY_NODEMAPPING_H__ 42 if (theTarget.empty())
45 std::pair<index_t,index_t> range(
47 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);
60 for (
index_t i=0; i<targetSize; ++i) {
66 for (
index_t i=0; i<numTargets; ++i) {
80 std::vector<index_t>
map;
85 #endif // __FINLEY_NODEMAPPING_H__ void clear()
resets both map and target.
Definition: finley/src/NodeMapping.h:31
void assign(const std::vector< index_t > &theTarget, index_t unused)
Definition: finley/src/NodeMapping.h:40
void setError(ErrorCodeType err, const char *msg)
sets an error
Definition: Finley.cpp:43
Definition: finley/src/Assemble.h:32
dim_t getNumTargets() const
returns the number of target nodes (number of items in the map array)
Definition: finley/src/NodeMapping.h:75
Definition: finley/src/NodeMapping.h:29
std::vector< index_t > target
target[i] defines the target of FEM node i=0,...,numNodes-1
Definition: finley/src/NodeMapping.h:78
std::vector< index_t > map
maps the target nodes back to the FEM nodes: target[map[i]]=i
Definition: finley/src/NodeMapping.h:80
int index_t
Definition: types.h:24
index_t dim_t
Definition: types.h:27
std::pair< index_t, index_t > getFlaggedMinMaxInt(dim_t N, const index_t *values, index_t ignore)
Definition: finley/src/Util.cpp:310