|
OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
#include <AmrParticleLevelCounter.h>
Public Types | |
| typedef std::map< Key, T >::value_type | value_type |
| typedef std::map< Key, T >::size_type | size_type |
| typedef std::map< Key, T >::iterator | iterator |
| typedef std::map< Key, T >::const_iterator | const_iterator |
Public Member Functions | |
| AmrParticleLevelCounter () | |
| void | increment (const Key &level, T nTimes=T(1)) |
| void | decrement (const Key &level, T nTimes=T(1)) |
| T & | operator[] (T level) |
| const T & | operator[] (T level) const |
| size_type | size () const |
| bool | empty () const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| T | begin (T level) const |
| T | end (T level) const |
| void | remove (T num, T begin) |
| T | getLocalNumAllLevel () |
| T | getLocalNumUpToLevel (T level) const |
| T | getLocalNumAtLevel (T level) const |
Private Member Functions | |
| T | which (T idx) |
Private Attributes | |
| std::map< Key, T > | count_m |
Definition at line 39 of file AmrParticleLevelCounter.h.
| typedef std::map<Key,T>::const_iterator AmrParticleLevelCounter< Key, T, Compare, Allocator >::const_iterator |
Definition at line 46 of file AmrParticleLevelCounter.h.
| typedef std::map<Key,T>::iterator AmrParticleLevelCounter< Key, T, Compare, Allocator >::iterator |
Definition at line 45 of file AmrParticleLevelCounter.h.
| typedef std::map<Key,T>::size_type AmrParticleLevelCounter< Key, T, Compare, Allocator >::size_type |
Definition at line 44 of file AmrParticleLevelCounter.h.
| typedef std::map<Key,T>::value_type AmrParticleLevelCounter< Key, T, Compare, Allocator >::value_type |
Definition at line 43 of file AmrParticleLevelCounter.h.
|
inline |
Definition at line 50 of file AmrParticleLevelCounter.h.
|
inline |
Definition at line 74 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m.
Referenced by BoxLibParticle< PLayout >::AssignCellDensitySingleLevelFort(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::end(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::getLocalNumAllLevel(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::getLocalNumAtLevel(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::getLocalNumUpToLevel(), BoxLibParticle< PLayout >::InterpolateMultiLevelFort(), BoxLibParticle< PLayout >::InterpolateSingleLevelFort(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::remove(), AmrBoxLib::tagForMaxNumParticles_m(), AmrBoxLib::tagForMinNumParticles_m(), AmrBoxLib::tagForMomenta_m(), and AmrYtWriter::writeParticles_m().
|
inline |
Definition at line 75 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m.
|
inline |
Obtain the start of a level
| level |
Definition at line 86 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m, AmrParticleLevelCounter< Key, T, Compare, Allocator >::end(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::size(), sum(), and Attrib::Legacy::Distribution::T.

|
inline |
Add more "particles" to that level
| level | where to add |
| nTimes | to decrement |
Definition at line 64 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::increment().

|
inline |
Definition at line 72 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m.
|
inline |
Definition at line 77 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m.
Referenced by BoxLibParticle< PLayout >::AssignCellDensitySingleLevelFort(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::begin(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::getLocalNumAtLevel(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::getLocalNumUpToLevel(), BoxLibParticle< PLayout >::InterpolateMultiLevelFort(), BoxLibParticle< PLayout >::InterpolateSingleLevelFort(), and AmrParticleLevelCounter< Key, T, Compare, Allocator >::which().
|
inline |
Definition at line 78 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m.
|
inline |
Obtain the end of a level
| level |
Definition at line 105 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::begin().

|
inline |
Definition at line 127 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::begin(), and AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m.

|
inline |
Definition at line 148 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::begin(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::end(), PAssert_GE, and Attrib::Legacy::Distribution::T.

|
inline |
Definition at line 135 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::begin(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::end(), PAssert_GE, sum(), and Attrib::Legacy::Distribution::T.

|
inline |
Add more "particles" to that level
| level | where to add |
| nTimes | to increment |
Definition at line 57 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m.
Referenced by AmrParticleLevelCounter< Key, T, Compare, Allocator >::decrement().
|
inline |
Definition at line 66 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m.
|
inline |
Definition at line 68 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m.
|
inline |
Remove particle indices from the container
| num | of particles that will be removed |
| begin | of index |
Definition at line 113 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::begin(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m, Attrib::Legacy::Distribution::T, and AmrParticleLevelCounter< Key, T, Compare, Allocator >::which().

|
inline |
Definition at line 70 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::count_m.
Referenced by AmrParticleLevelCounter< Key, T, Compare, Allocator >::begin(), and AmrParticleLevelCounter< Key, T, Compare, Allocator >::which().
|
inlineprivate |
Find the level the particle belongs to
| idx | is the local index of the particle |
Definition at line 159 of file AmrParticleLevelCounter.h.
References AmrParticleLevelCounter< Key, T, Compare, Allocator >::end(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::size(), and Attrib::Legacy::Distribution::T.
Referenced by AmrParticleLevelCounter< Key, T, Compare, Allocator >::remove().

|
private |
Key represents level T represents number of particles
Definition at line 174 of file AmrParticleLevelCounter.h.
Referenced by AmrParticleLevelCounter< Key, T, Compare, Allocator >::begin(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::empty(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::end(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::getLocalNumAllLevel(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::increment(), AmrParticleLevelCounter< Key, T, Compare, Allocator >::operator[](), AmrParticleLevelCounter< Key, T, Compare, Allocator >::remove(), and AmrParticleLevelCounter< Key, T, Compare, Allocator >::size().