21 #ifndef bempp_local_dof_lists_cache_hpp
22 #define bempp_local_dof_lists_cache_hpp
24 #include "../common/common.hpp"
25 #include "../common/shared_ptr.hpp"
26 #include "../common/types.hpp"
28 #include <tbb/concurrent_unordered_map.h>
36 template <
typename BasisFunctionType>
class Space;
43 template <
typename BasisFunctionType>
51 std::vector<DofIndex> originalIndices;
52 std::vector<int> elementIndices;
53 std::vector<std::vector<LocalDofIndex> > localDofIndices;
54 std::vector<std::vector<BasisFunctionType> > localDofWeights;
55 std::vector<std::vector<int> > arrayIndices;
61 template <
typename BasisFunctionType>
66 const std::vector<unsigned int>& p2o,
67 bool indexWithGlobalDofs);
72 shared_ptr<const LocalDofLists<BasisFunctionType> >
get(
73 int start,
int indexCount);
80 std::vector<int>& elementIndices,
81 std::vector<std::vector<LocalDofIndex> >& localDofIndices,
82 std::vector<std::vector<BasisFunctionType> >& localDofWeights,
83 std::vector<std::vector<int> >& arrayIndices)
const;
88 std::vector<int>& elementIndices,
89 std::vector<std::vector<LocalDofIndex> >& localDofIndices,
90 std::vector<std::vector<BasisFunctionType> >& localDofWeights,
91 std::vector<std::vector<int> >& arrayIndices)
const;
96 const std::vector<unsigned int>& m_p2o;
97 bool m_indexWithGlobalDofs;
99 typedef tbb::concurrent_unordered_map<std::pair<int, int>,
101 LocalDofListsMap m_map;
Function space.
Definition: assembled_potential_operator.hpp:35
Data used by WeakFormAcaAssemblyHelper to convert between H-matrix indices, global and local degrees ...
Definition: local_dof_lists_cache.hpp:44
Cache of LocalDofLists objects.
Definition: local_dof_lists_cache.hpp:62
int DofIndex
Type used to index matrices.
Definition: local_dof_lists_cache.hpp:50