![]() |
OGS
|
|
Definition at line 65 of file MatrixElementCache.h.
#include <MatrixElementCache.h>
Public Member Functions | |
| MatrixElementCache (MatOrVec &mat_or_vec, Stats &stats, const int num_threads) | |
| void | add (std::vector< double > const &local_data, std::vector< GlobalIndexType > const &indices) |
| ~MatrixElementCache () | |
Private Types | |
| using | MatOrVec = std::conditional_t<Dim == 1, GlobalVector, GlobalMatrix> |
Private Member Functions | |
| void | addToCache (std::vector< double > const &values, std::vector< GlobalIndexType > const &indices) |
| void | addToCacheImpl (std::vector< double > const &values, std::vector< GlobalIndexType > const &indices, std::integral_constant< std::size_t, 1 >) |
| void | addToCacheImpl (std::vector< double > const &values, std::vector< GlobalIndexType > const &indices, std::integral_constant< std::size_t, 2 >) |
| void | ensureEnoughSpace (std::size_t const space_needed) |
| OGS_NO_INLINE void | ensureEnoughSpaceSlow (std::size_t const space_needed) |
| void | addCacheToGlobal () |
Private Attributes | |
| std::vector< MatrixElementCacheEntry< Dim > > | cache_ |
| MatOrVec & | mat_or_vec_ |
| Stats & | stats_ |
| int | num_threads_ |
Static Private Attributes | |
| static constexpr std::size_t | cache_capacity = 1'000'000 |
|
private |
Definition at line 68 of file MatrixElementCache.h.
|
inline |
Definition at line 73 of file MatrixElementCache.h.
References cache_, cache_capacity, mat_or_vec_, num_threads_, and stats_.
|
inline |
Definition at line 108 of file MatrixElementCache.h.
References addCacheToGlobal().
|
inline |
Definition at line 80 of file MatrixElementCache.h.
References addToCache(), mat_or_vec_, num_threads_, and MathLib::toMatrix().
|
inlineprivate |
Definition at line 227 of file MatrixElementCache.h.
References cache_, mat_or_vec_, stats_, and ProcessLib::Assembly::detail::transformToNonGhostIndex().
Referenced by ~MatrixElementCache(), and ensureEnoughSpaceSlow().
|
inlineprivate |
Definition at line 111 of file MatrixElementCache.h.
References addToCacheImpl(), and ensureEnoughSpace().
Referenced by add().
|
inlineprivate |
Definition at line 121 of file MatrixElementCache.h.
References cache_, and stats_.
Referenced by addToCache().
|
inlineprivate |
Definition at line 156 of file MatrixElementCache.h.
|
inlineprivate |
Definition at line 187 of file MatrixElementCache.h.
References cache_, and ensureEnoughSpaceSlow().
Referenced by addToCache().
|
inlineprivate |
Definition at line 199 of file MatrixElementCache.h.
References addCacheToGlobal(), cache_, cache_capacity, and OGS_NO_INLINE.
Referenced by ensureEnoughSpace().
|
private |
Definition at line 269 of file MatrixElementCache.h.
Referenced by MatrixElementCache(), addCacheToGlobal(), addToCacheImpl(), addToCacheImpl(), ensureEnoughSpace(), and ensureEnoughSpaceSlow().
|
staticconstexprprivate |
Definition at line 70 of file MatrixElementCache.h.
Referenced by MatrixElementCache(), and ensureEnoughSpaceSlow().
|
private |
Definition at line 270 of file MatrixElementCache.h.
Referenced by MatrixElementCache(), add(), and addCacheToGlobal().
|
private |
Definition at line 272 of file MatrixElementCache.h.
Referenced by MatrixElementCache(), and add().
|
private |
Definition at line 271 of file MatrixElementCache.h.
Referenced by MatrixElementCache(), addCacheToGlobal(), addToCacheImpl(), and addToCacheImpl().