21#ifndef BELFEM_CL_CHAIN_HPP
22#define BELFEM_CL_CHAIN_HPP
47 Chain * mBoundary =
nullptr;
50 Chain * mCoboundary =
nullptr;
52 bool mIsBound =
false;
53 bool mIsCobound =
false;
59 Chain(
const uint aDim,
Mesh * aMesh,
const bool aIsBound,
const bool aIsCobound ) ;
160 return mSimplicesMap;
168 auto it = mSimplicesMap.
find( aIndex );
169 if (it != mSimplicesMap.end()) {
206 mCoboundary->add_simplex_to_chain( aIndex, aCoeff );
Top-level container for all mesh entities.
Definition cl_Mesh.hpp:60
auto find(const Key &tKey) const -> decltype(mMap.find(tKey))
Definition cl_OrderedMap.hpp:139
Formal sum of k-simplices (homology).
Definition cl_Chain.hpp:36
int operator()(Chain *aChain)
Definition cl_Chain.cpp:84
void operator-(Chain *aChain)
Definition cl_Chain.cpp:65
Chain * get_coboundary()
Definition cl_Chain.hpp:188
int get_coefficient(const index_t aIndex)
Definition cl_Chain.hpp:166
void remove_simplex_from_chain(const index_t aIndex)
Definition cl_Chain.cpp:125
void operator*(const int aMult)
Definition cl_Chain.cpp:73
void remove_chain_from_chain(Chain *aChain)
Definition cl_Chain.cpp:163
Chain * get_boundary()
Definition cl_Chain.hpp:180
void operator+(Chain *aChain)
Definition cl_Chain.cpp:57
void add_chain_to_chain(Chain *aChain, int aCoeff)
Definition cl_Chain.cpp:134
void add_simplex_to_boundary(index_t aIndex, const int aCoeff)
Definition cl_Chain.hpp:196
int get_dim()
Definition cl_Chain.hpp:212
void add_simplex_to_chain(const index_t aIndex, const int aCoeff)
Definition cl_Chain.cpp:101
OrderedMap< index_t, int > & get_simplices_map()
Definition cl_Chain.hpp:158
void add_simplex_to_coboundary(index_t aIndex, const int aCoeff)
Definition cl_Chain.hpp:204
void set_coefficient(const index_t aIndex, const int aCoeff)
Definition cl_Chain.cpp:182
void print()
Definition cl_Chain.cpp:197
Chain(const uint aDim, Mesh *aMesh, const bool aIsBound, const bool aIsCobound)
Definition cl_Chain.cpp:21
Definition cl_EF_EdgeFunction.hpp:24
USER GUIDES:
Definition cl_Capacitor.cpp:16
unsigned int uint
Definition typedefs.hpp:30
uint32_t index_t
Definition typedefs.hpp:52