OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
#include <ParticleAttrib.h>
Public Types | |
enum | { IsExpr = 0 } |
typedef T | Return_t |
typedef std::vector< T > | ParticleList_t |
typedef ParticleAttribIterator< T > | iterator |
typedef ParticleAttribConstIterator< T > | const_iterator |
typedef ParticleAttribBase::SortListIndex_t | SortListIndex_t |
typedef ParticleAttribBase::SortList_t | SortList_t |
typedef const_iterator | PETE_Expr_t |
Public Types inherited from ParticleAttribBase | |
typedef long | SortListIndex_t |
typedef std::vector< SortListIndex_t > | SortList_t |
Public Types inherited from DataSource | |
enum | DsMode { INPUT , OUTPUT , BOTH , DEFAULT } |
typedef std::vector< DataSourceObject * > | container_t |
Public Types inherited from PETE_Expr< ParticleAttrib< T > > | |
typedef ParticleAttrib< T > | Wrapped |
Public Member Functions | |
ParticleAttrib () | |
ParticleAttrib (const ParticleAttrib< T > &pa) | |
~ParticleAttrib () | |
bool | isDirty () |
void | resetDirtyFlag () |
ParticleList_t::reference | operator[] (size_t n) |
ParticleList_t::const_reference | operator[] (size_t n) const |
template<unsigned Dim> | |
SubParticleAttrib< ParticleAttrib< T >, T, Dim > | operator[] (const SIndex< Dim > &s) const |
PETE_Expr_t | MakeExpression () const |
iterator | begin () |
iterator | end () |
const_iterator | cbegin () const |
const_iterator | cend () const |
size_t | size (void) const |
ParticleAttribElem< T, 1U > | operator() (unsigned) |
ParticleAttribElem< T, 2U > | operator() (unsigned, unsigned) |
ParticleAttribElem< T, 3U > | operator() (unsigned, unsigned, unsigned) |
template<unsigned Dim, class M , class C , class PT , class IntOp > | |
void | scatter (Field< T, Dim, M, C > &f, const ParticleAttrib< Vektor< PT, Dim > > &pp, const IntOp &) const |
template<unsigned Dim, class M , class C , class PT , class IntOp , class CacheData > | |
void | scatter (Field< T, Dim, M, C > &f, const ParticleAttrib< Vektor< PT, Dim > > &pp, const IntOp &, ParticleAttrib< CacheData > &cache) const |
template<unsigned Dim, class M , class C , class IntOp , class CacheData > | |
void | scatter (Field< T, Dim, M, C > &f, const IntOp &, const ParticleAttrib< CacheData > &cache) const |
template<unsigned Dim, class M , class C , class PT , class IntOp > | |
void | gather (const Field< T, Dim, M, C > &f, const ParticleAttrib< Vektor< PT, Dim > > &pp, const IntOp &) |
template<unsigned Dim, class M , class C , class PT , class IntOp , class CacheData > | |
void | gather (const Field< T, Dim, M, C > &f, const ParticleAttrib< Vektor< PT, Dim > > &pp, const IntOp &, ParticleAttrib< CacheData > &cache) |
template<unsigned Dim, class M , class C , class IntOp , class CacheData > | |
void | gather (const Field< T, Dim, M, C > &f, const IntOp &, const ParticleAttrib< CacheData > &cache) |
template<class T1 > | |
const ParticleAttrib< T > & | operator= (const PETE_Expr< T1 > &rhs) |
const ParticleAttrib< T > & | operator= (const ParticleAttrib< T > &rhs) |
const ParticleAttrib< T > & | operator= (T rhs) |
virtual void | create (size_t) |
virtual void | destroy (size_t M, size_t I, bool optDestroy=true) |
virtual void | destroy (const std::vector< std::pair< size_t, size_t > > &dlist, bool optDestroy=true) |
virtual size_t | putMessage (Message &, size_t, size_t) |
virtual size_t | putMessage (Message &, const std::vector< size_t > &) |
virtual size_t | getMessage (Message &, size_t) |
virtual size_t | ghostDestroy (size_t, size_t) |
virtual void | ghostCreate (size_t) |
virtual size_t | ghostPutMessage (Message &, size_t, size_t) |
virtual size_t | ghostPutMessage (Message &, const std::vector< size_t > &) |
virtual size_t | ghostGetMessage (Message &, size_t) |
virtual void | calcSortList (SortList_t &slist, bool ascending=true) |
virtual void | sort (SortList_t &slist) |
virtual void | printDebug (Inform &) |
Public Member Functions inherited from ParticleAttribBase | |
ParticleAttribBase (unsigned int size, const std::string &typestr) | |
ParticleAttribBase (const ParticleAttribBase &pa) | |
virtual | ~ParticleAttribBase () |
unsigned int | elementSize () const |
const std::string & | typeString () const |
void | setTemporary (bool t) |
bool | isTemporary () const |
virtual void | create (size_t M)=0 |
virtual void | destroy (size_t M, size_t I, bool optDestroy)=0 |
virtual void | destroy (const std::vector< std::pair< size_t, size_t > > &dlist, bool optDestroy)=0 |
virtual size_t | putMessage (Message &, size_t, size_t)=0 |
virtual size_t | putMessage (Message &, const std::vector< size_t > &)=0 |
virtual size_t | getMessage (Message &, size_t)=0 |
virtual size_t | ghostDestroy (size_t M, size_t I)=0 |
virtual void | ghostCreate (size_t M)=0 |
virtual size_t | ghostPutMessage (Message &, size_t, size_t)=0 |
virtual size_t | ghostPutMessage (Message &, const std::vector< size_t > &)=0 |
virtual size_t | ghostGetMessage (Message &, size_t)=0 |
virtual void | calcSortList (SortList_t &slist, bool ascending=true)=0 |
virtual void | sort (SortList_t &slist)=0 |
virtual void | printDebug (Inform &)=0 |
Public Member Functions inherited from DataSource | |
DataSource () | |
virtual | ~DataSource () |
bool | connected (DataConnect *=0) const |
DataSourceObject * | findDataSourceObject (DataConnect *) const |
DataConnect * | connect (const char *, DataConnect *=0, int=DataSource::DEFAULT) |
bool | connect (DataSourceObject *) |
bool | disconnect (DataConnect *=0) |
bool | updateConnection (DataConnect *=0) |
void | interact (DataConnect *=0) |
void | interact (const char *, DataConnect *=0) |
Public Member Functions inherited from PETE_Expr< ParticleAttrib< T > > | |
ParticleAttrib< T > & | PETE_unwrap () |
const ParticleAttrib< T > & | PETE_unwrap () const |
Protected Member Functions | |
virtual DataSourceObject * | createDataSourceObject (const char *nm, DataConnect *dc, int tm) |
virtual DataSourceObject * | createDataSourceObject (const char *, DataConnect *, int)=0 |
Protected Attributes | |
ParticleList_t | ParticleList |
size_t | LocalSize |
Private Attributes | |
bool | attributeIsDirty_ |
Friends | |
class | ParticleAttribIterator< T > |
class | ParticleAttribConstIterator< T > |
Definition at line 98 of file ParticleAttrib.h.
typedef ParticleAttribConstIterator<T> ParticleAttrib< T >::const_iterator |
Definition at line 110 of file ParticleAttrib.h.
typedef ParticleAttribIterator<T> ParticleAttrib< T >::iterator |
Definition at line 109 of file ParticleAttrib.h.
typedef std::vector<T> ParticleAttrib< T >::ParticleList_t |
Definition at line 108 of file ParticleAttrib.h.
typedef const_iterator ParticleAttrib< T >::PETE_Expr_t |
Definition at line 170 of file ParticleAttrib.h.
typedef T ParticleAttrib< T >::Return_t |
Definition at line 107 of file ParticleAttrib.h.
typedef ParticleAttribBase::SortList_t ParticleAttrib< T >::SortList_t |
Definition at line 112 of file ParticleAttrib.h.
typedef ParticleAttribBase::SortListIndex_t ParticleAttrib< T >::SortListIndex_t |
Definition at line 111 of file ParticleAttrib.h.
anonymous enum |
Enumerator | |
---|---|
IsExpr |
Definition at line 169 of file ParticleAttrib.h.
|
inline |
Definition at line 116 of file ParticleAttrib.h.
References INCIPPLSTAT.
|
inline |
Definition at line 121 of file ParticleAttrib.h.
References INCIPPLSTAT.
|
inline |
Definition at line 127 of file ParticleAttrib.h.
|
inline |
Definition at line 174 of file ParticleAttrib.h.
Referenced by ParticleAttrib< T >::gather(), scatter(), and ParticleAttrib< T >::scatter().
|
virtual |
Implements ParticleAttribBase.
Definition at line 422 of file ParticleAttrib.hpp.
|
inline |
Definition at line 177 of file ParticleAttrib.h.
Referenced by ParticleAttrib< T >::gather(), ParticleAttrib< T >::MakeExpression(), scatter(), and ParticleAttrib< T >::scatter().
|
inline |
Definition at line 178 of file ParticleAttrib.h.
References ParticleAttrib< T >::LocalSize.
|
virtual |
Implements ParticleAttribBase.
Definition at line 74 of file ParticleAttrib.hpp.
References Attrib::Legacy::Distribution::T.
Referenced by PartBunch::computeSelfFields(), MultiBunchHandler::saveBunch(), and ParallelTTracker::writePhaseSpace().
|
inlineprotectedvirtual |
Implements DataSource.
Definition at line 502 of file ParticleAttrib.h.
References make_DataSourceObject().
|
virtual |
Implements ParticleAttribBase.
Definition at line 140 of file ParticleAttrib.hpp.
|
virtual |
Implements ParticleAttribBase.
Definition at line 98 of file ParticleAttrib.hpp.
Referenced by PartBunch::computeSelfFields(), DiscParticle::read(), PartBunch::resetInterpolationCache(), and ParallelTTracker::writePhaseSpace().
|
inline |
Definition at line 175 of file ParticleAttrib.h.
References ParticleAttrib< T >::LocalSize.
|
inline |
Definition at line 352 of file ParticleAttrib.h.
References ParticleAttrib< T >::cbegin(), BareField< T, Dim >::Compress(), ParticleAttribConstIterator< T >::curr, Field< T, Dim, M, C >::fillGuardCells(), gather(), INCIPPLSTAT, BareField< T, Dim >::isDirty(), ParticleAttrib< T >::LocalSize, ParticleAttrib< T >::ParticleList, and BareField< T, Dim >::Uncompress().
|
inline |
Definition at line 291 of file ParticleAttrib.h.
References BareField< T, Dim >::Compress(), ParticleAttribConstIterator< T >::curr, Field< T, Dim, M, C >::fillGuardCells(), gather(), Field< T, Dim, M, C >::get_mesh(), INCIPPLSTAT, BareField< T, Dim >::isDirty(), ParticleAttrib< T >::LocalSize, ParticleAttrib< T >::ParticleList, and BareField< T, Dim >::Uncompress().
Referenced by gather().
|
inline |
Definition at line 321 of file ParticleAttrib.h.
References ParticleAttrib< T >::begin(), BareField< T, Dim >::Compress(), ParticleAttribConstIterator< T >::curr, Field< T, Dim, M, C >::fillGuardCells(), gather(), Field< T, Dim, M, C >::get_mesh(), INCIPPLSTAT, BareField< T, Dim >::isDirty(), ParticleAttrib< T >::LocalSize, ParticleAttrib< T >::ParticleList, and BareField< T, Dim >::Uncompress().
|
virtual |
Implements ParticleAttribBase.
Definition at line 279 of file ParticleAttrib.hpp.
References getMessage(), getMessage_iter(), and PAssert_EQ.
Referenced by DiscParticle::read().
|
virtual |
Implements ParticleAttribBase.
Definition at line 328 of file ParticleAttrib.hpp.
References Attrib::Legacy::Distribution::T.
|
virtual |
Implements ParticleAttribBase.
Reimplemented in ParticleInteractAttrib< T >.
Definition at line 341 of file ParticleAttrib.hpp.
|
virtual |
Implements ParticleAttribBase.
Reimplemented in ParticleInteractAttrib< T >.
Definition at line 354 of file ParticleAttrib.hpp.
References getMessage_iter().
|
virtual |
Implements ParticleAttribBase.
Reimplemented in ParticleInteractAttrib< T >.
Definition at line 318 of file ParticleAttrib.hpp.
|
virtual |
Implements ParticleAttribBase.
Reimplemented in ParticleInteractAttrib< T >.
Definition at line 312 of file ParticleAttrib.hpp.
|
inline |
notify user that attribute has changed. The user is responsible to define the meaning of the dirt and clean state
Definition at line 135 of file ParticleAttrib.h.
References ParticleAttrib< T >::attributeIsDirty_, and reduce().
Referenced by AmrPartBunch::boundp().
|
inline |
Definition at line 171 of file ParticleAttrib.h.
References ParticleAttrib< T >::cbegin().
ParticleAttribElem< T, 1U > ParticleAttrib< T >::operator() | ( | unsigned | i | ) |
Definition at line 41 of file ParticleAttrib.hpp.
References PInsist.
ParticleAttribElem< T, 2U > ParticleAttrib< T >::operator() | ( | unsigned | i, |
unsigned | j | ||
) |
Definition at line 52 of file ParticleAttrib.hpp.
References PInsist.
ParticleAttribElem< T, 3U > ParticleAttrib< T >::operator() | ( | unsigned | i, |
unsigned | j, | ||
unsigned | k | ||
) |
Definition at line 63 of file ParticleAttrib.hpp.
References PInsist.
|
inline |
Definition at line 387 of file ParticleAttrib.h.
References assign(), endl(), ERRORMSG, and ParticleAttrib< T >::size().
|
inline |
Definition at line 381 of file ParticleAttrib.h.
References assign().
|
inline |
Definition at line 397 of file ParticleAttrib.h.
References assign().
|
inline |
Definition at line 161 of file ParticleAttrib.h.
References a, Dim, and Attrib::Legacy::Distribution::T.
|
inline |
Definition at line 145 of file ParticleAttrib.h.
References ParticleAttrib< T >::attributeIsDirty_, Hypervolume::n, and ParticleAttrib< T >::ParticleList.
|
inline |
Definition at line 151 of file ParticleAttrib.h.
References Hypervolume::n, and ParticleAttrib< T >::ParticleList.
|
virtual |
Implements ParticleAttribBase.
Reimplemented in ParticleInteractAttrib< T >.
Definition at line 371 of file ParticleAttrib.hpp.
|
virtual |
Implements ParticleAttribBase.
Reimplemented in ParticleInteractAttrib< T >.
Definition at line 254 of file ParticleAttrib.hpp.
References putMessage().
|
virtual |
Implements ParticleAttribBase.
Reimplemented in ParticleInteractAttrib< T >.
Definition at line 231 of file ParticleAttrib.hpp.
References putMessage().
Referenced by ParticleInteractAttrib< T >::putMessage(), and DiscParticle::write().
|
inline |
Definition at line 140 of file ParticleAttrib.h.
References ParticleAttrib< T >::attributeIsDirty_.
Referenced by AmrPartBunch::boundp().
|
inline |
Definition at line 264 of file ParticleAttrib.h.
References BareField< T, Dim >::accumGuardCells(), ParticleAttrib< T >::cbegin(), ParticleAttribConstIterator< T >::curr, INCIPPLSTAT, ParticleAttrib< T >::LocalSize, ParticleAttrib< T >::ParticleList, scatter(), BareField< T, Dim >::setGuardCells(), Attrib::Legacy::Distribution::T, and BareField< T, Dim >::Uncompress().
|
inline |
Definition at line 204 of file ParticleAttrib.h.
References BareField< T, Dim >::accumGuardCells(), ParticleAttribConstIterator< T >::curr, Field< T, Dim, M, C >::get_mesh(), INCIPPLSTAT, ParticleAttrib< T >::LocalSize, ParticleAttrib< T >::ParticleList, scatter(), BareField< T, Dim >::setGuardCells(), Attrib::Legacy::Distribution::T, and BareField< T, Dim >::Uncompress().
Referenced by PartBunch::computeSelfFields(), PartBunch::computeSelfFields_cycl(), and scatter().
|
inline |
Definition at line 233 of file ParticleAttrib.h.
References BareField< T, Dim >::accumGuardCells(), ParticleAttrib< T >::begin(), ParticleAttribConstIterator< T >::curr, Field< T, Dim, M, C >::get_mesh(), INCIPPLSTAT, ParticleAttrib< T >::LocalSize, ParticleAttrib< T >::ParticleList, scatter(), BareField< T, Dim >::setGuardCells(), Attrib::Legacy::Distribution::T, and BareField< T, Dim >::Uncompress().
|
inline |
Definition at line 180 of file ParticleAttrib.h.
References ParticleAttrib< T >::LocalSize.
Referenced by PartBunch::computeSelfFields(), ParticleAttrib< T >::operator=(), ParticleInteractAttrib< T >::operator=(), ParticleInteractAttrib< T >::operator[](), pap(), DiscParticle::read(), PartBunch::resetInterpolationCache(), scatter(), spap(), and DiscParticle::write().
|
virtual |
Implements ParticleAttribBase.
Definition at line 492 of file ParticleAttrib.hpp.
References PAssert_GE.
|
friend |
Definition at line 920 of file ParticleAttrib.h.
|
friend |
Definition at line 920 of file ParticleAttrib.h.
|
private |
Definition at line 512 of file ParticleAttrib.h.
Referenced by ParticleAttrib< T >::isDirty(), ParticleAttrib< T >::operator[](), and ParticleAttrib< T >::resetDirtyFlag().
|
protected |
Definition at line 509 of file ParticleAttrib.h.
Referenced by ParticleAttrib< T >::cend(), ParticleAttrib< T >::end(), ParticleAttrib< T >::gather(), ParticleAttrib< T >::scatter(), and ParticleAttrib< T >::size().
|
protected |
Definition at line 508 of file ParticleAttrib.h.
Referenced by ParticleAttrib< T >::gather(), ParticleAttrib< T >::operator[](), ParticleInteractAttrib< T >::operator[](), and ParticleAttrib< T >::scatter().