|
waLBerla 7.2
|
Class/functor for counting the blocks stored in parallel on all processes in a structured block storage.
Returns the total number of blocks stored in a 'StructuredBlockStorage'. Can also return the number of blocks that are contained only on a specific level.
#include <BlockCounter.h>
Public Member Functions | |
| BlockCounter (const weak_ptr< StructuredBlockStorage > &blocks, const Set< SUID > &requiredSelectors=Set< SUID >::emptySet(), const Set< SUID > &incompatibleSelectors=Set< SUID >::emptySet()) | |
| uint_t | numberOfBlocks () const |
| uint_t | numberOfBlocks (const uint_t level) const |
| void | operator() () |
Private Attributes | |
| uint_t | totalNumberOfBlocks_ |
| std::vector< uint_t > | numberOfBlocks_ |
| weak_ptr< StructuredBlockStorage > | blocks_ |
| Set< SUID > | requiredSelectors_ |
| Set< SUID > | incompatibleSelectors_ |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |