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) {
51 const dim_t numTargets = range.first<=range.second ? range.second+1 : 0;
52 target.assign(theTarget.begin(), theTarget.end());
54 map.assign(numTargets, -1);
60 for (
index_t i=0; i<targetSize; ++i) {
66 for (
index_t i=0; i<numTargets; ++i) {
83 std::vector<index_t>
map;
88 #endif // __FINLEY_NODEMAPPING_H__ void clear()
resets both map and target.
Definition: finley/src/NodeMapping.h:31
IndexPair getFlaggedMinMaxInt(dim_t N, const index_t *values, index_t ignore)
Definition: finley/src/Util.cpp:294
void assign(const std::vector< index_t > &theTarget, index_t unused)
Definition: finley/src/NodeMapping.h:40
A suite of factory methods for creating various finley domains.
Definition: finley/src/Assemble.h:31
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:59
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:81
std::vector< index_t > map
maps the target nodes back to the FEM nodes: target[map[i]]=i
Definition: finley/src/NodeMapping.h:83
dim_t getNumTargets() const
returns the number of target nodes (number of items in the map array)
Definition: finley/src/NodeMapping.h:78
An exception class that signals an invalid argument value.
Definition: EsysException.h:88
index_t dim_t
Definition: DataTypes.h:64