escript
Revision_
|
#include <NodeMapping.h>
Public Member Functions | |
void | clear () |
resets both map and target. | |
void | assign (const std::vector< int > &theTarget, int unused) |
int | getNumTargets () const |
returns the number of target nodes (number of items in the map array) | |
Public Attributes | |
std::vector< int > | target |
target[i] defines the target of FEM node i=0,...,numNodes-1 | |
std::vector< int > | map |
maps the target nodes back to the FEM nodes: target[map[i]]=i |
void finley::NodeMapping::assign | ( | const std::vector< int > & | theTarget, |
int | unused | ||
) | [inline] |
initializes a node mapping. The target array is copied and a reverse map created. theTarget[i]=unused means that no target is defined for FEM node i.
References finley::util::getFlaggedMinMaxInt(), map, finley::setError(), target, and VALUE_ERROR.
Referenced by finley::NodeFile::createDOFMappingAndCoupling(), and finley::NodeFile::createNodeMappings().
void finley::NodeMapping::clear | ( | ) | [inline] |
resets both map and target.
Referenced by finley::NodeFile::freeTable().
int finley::NodeMapping::getNumTargets | ( | ) | const [inline] |
returns the number of target nodes (number of items in the map array)
References map.
Referenced by finley::NodeFile::createNodeMappings(), finley::NodeFile::getNumReducedNodes(), and finley::Mesh::makePattern().
std::vector<int> finley::NodeMapping::map |
maps the target nodes back to the FEM nodes: target[map[i]]=i
Referenced by assign(), finley::NodeFile::borrowDegreesOfFreedomTarget(), finley::NodeFile::borrowNodesTarget(), finley::NodeFile::borrowReducedDegreesOfFreedomTarget(), finley::NodeFile::borrowReducedNodesTarget(), clear(), finley::NodeFile::createNodeMappings(), and getNumTargets().
std::vector<int> finley::NodeMapping::target |
target[i] defines the target of FEM node i=0,...,numNodes-1
Referenced by assign(), finley::NodeFile::borrowTargetDegreesOfFreedom(), finley::NodeFile::borrowTargetNodes(), finley::NodeFile::borrowTargetReducedDegreesOfFreedom(), finley::NodeFile::borrowTargetReducedNodes(), clear(), and finley::NodeFile::print().