FEBio  1.5.0
FEBio/FEElemElemList.h
00001 #pragma once
00002 
00003 #include "FECore/vector.h"
00004 #include "FEMesh.h"
00005 
00006 //-----------------------------------------------------------------------------
00009 class FEElemElemList
00010 {
00011 public:
00012         FEElemElemList(void);
00013         ~FEElemElemList(void);
00014 
00015         void Create(FEMesh* pmesh);
00016 
00017         FEElement* Neighbor(int n, int j) { return m_pel[ m_ref[n] + j]; }
00018 
00019 protected:
00020         void Init();
00021 
00022 protected:
00023         vector<int>     m_ref;          // start index into pel array
00024         vector<FEElement*>      m_pel;  // list of all neighbouring elements (or 0 if no neighbor)
00025         FEMesh* m_pmesh;
00026 };