Path: blob/devel/ElmerGUI/netgen/libsrc/meshing/clusters.hpp
3206 views
#ifndef CLUSTERS1#define CLUSTERS23/**************************************************************************/4/* File: clusers.hh */5/* Author: Joachim Schoeberl */6/* Date: 28. Apr. 01 */7/**************************************************************************/89/*10Anisotropic clusters1112nodes, edges, faces, elements13*/141516class AnisotropicClusters17{18const Mesh & mesh;1920int nv, ned, nfa, ne;2122// connected nodes, nodes = vertices, edges, faces, elements23ARRAY<int> cluster_reps;2425public:26AnisotropicClusters (const Mesh & amesh);27~AnisotropicClusters();2829void Update();3031int GetVertexRepresentant (int vnr) const32{ return cluster_reps.Get(vnr); }33int GetEdgeRepresentant (int ednr) const34{ return cluster_reps.Get(nv+ednr); }35int GetFaceRepresentant (int fnr) const36{ return cluster_reps.Get(nv+ned+fnr); }37int GetElementRepresentant (int enr) const38{ return cluster_reps.Get(nv+ned+nfa+enr); }39};4041#endif424344