|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <GenArrayParticle.h>


Public Types | |
| enum | { Dim = PLayout::Dimension } |
| typedef PLayout | Layout_t |
| typedef PLayout::Position_t | Position_t |
| typedef PLayout::Index_t | Index_t |
| typedef PLayout::ParticlePos_t | ParticlePos_t |
| typedef PLayout::ParticleIndex_t | ParticleIndex_t |
| typedef PLayout::pair_iterator | pair_iterator |
| typedef PLayout::pair_t | pair_t |
| typedef PLayout::UpdateFlags | UpdateFlags |
| typedef std::vector< ParticleAttribBase * > | attrib_container_t |
| typedef attrib_container_t::iterator | attrib_iterator |
| typedef ParticleAttribBase::SortList_t | SortList_t |
| enum | DsMode { INPUT , OUTPUT , BOTH , DEFAULT } |
| typedef std::vector< DataSourceObject * > | container_t |
| typedef ParticleLayout< PLayout::Position_t, Dim >::SingleParticlePos_t | SingleParticlePos_t |
Public Member Functions | |
| GenArrayParticle (PLayout *L) | |
| void | initialize (PLayout *) |
| size_t | getTotalNum () const |
| size_t | getLocalNum () const |
| size_t | getDestroyNum () const |
| size_t | getGhostNum () const |
| void | setTotalNum (size_t n) |
| void | setLocalNum (size_t n) |
| PLayout & | getLayout () |
| const PLayout & | getLayout () const |
| ParticleBConds< Position_t, PLayout::Dimension > & | getBConds () |
| void | setBConds (const ParticleBConds< Position_t, PLayout::Dimension > &bc) |
| virtual void | setBConds (const ParticleBConds< Position_t, Dim > &bc)=0 |
| bool | singleInitNode () const |
| bool | getUpdateFlag (UpdateFlags f) const |
| void | setUpdateFlag (UpdateFlags f, bool val) |
| void | addAttribute (ParticleAttribBase &pa) |
| ParticleAttribBase & | getAttribute (attrib_container_t::size_type N) |
| attrib_container_t::size_type | numAttributes () const |
| attrib_iterator | begin () |
| attrib_iterator | end () |
| void | resetID () |
| virtual void | update () |
| virtual void | update (const ParticleAttrib< char > &canSwap) |
| void | createWithID (unsigned id) |
| void | create (size_t) |
| void | globalCreate (size_t np) |
| void | destroy (size_t, size_t, bool=false) |
| size_t | putMessage (Message &, size_t, size_t) |
| size_t | putMessage (Message &, const std::vector< size_t > &) |
| size_t | putMessage (Message &, size_t) |
| Format * | getFormat () |
| size_t | writeMsgBuffer (MsgBuffer *&, const std::vector< size_t > &) |
| template<class O > | |
| size_t | writeMsgBufferWithOffsets (MsgBuffer *&, const std::vector< size_t > &, const std::vector< O > &) |
| size_t | readMsgBuffer (MsgBuffer *) |
| size_t | readGhostMsgBuffer (MsgBuffer *, int) |
| size_t | getMessage (Message &) |
| size_t | getSingleMessage (Message &) |
| size_t | getMessageAndCreate (Message &) |
| void | performDestroy (bool updateLocalNum=false) |
| void | sort (SortList_t &) |
| size_t | ghostPutMessage (Message &, size_t, size_t) |
| size_t | ghostPutMessage (Message &, const std::vector< size_t > &) |
| size_t | ghostGetMessage (Message &, int) |
| size_t | ghostGetSingleMessage (Message &, int) |
| void | ghostDestroy (size_t, size_t) |
| void | printDebug (Inform &) |
| 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 Attributes | |
| ParticleAttrib< T > | data [N] |
| ParticlePos_t | R |
| ParticleIndex_t | ID |
| ParticlePos_t * | R_p |
| ParticleIndex_t * | ID_p |
Protected Member Functions | |
| virtual DataSourceObject * | createDataSourceObject (const char *nm, DataConnect *dc, int tm) |
Protected Attributes | |
| std::vector< std::pair< size_t, size_t > > | DestroyList |
Private Member Functions | |
| GenArrayParticle () | |
| void | setup () |
| unsigned | getNextID () |
Private Attributes | |
| PLayout * | Layout |
| attrib_container_t | AttribList |
| size_t | TotalNum |
| size_t | LocalNum |
| size_t | DestroyNum |
| size_t | GhostNum |
| unsigned | NextID |
| container_t | ConnectionList |
Definition at line 25 of file GenArrayParticle.h.
|
inherited |
Definition at line 142 of file IpplParticleBase.h.
|
inherited |
Definition at line 143 of file IpplParticleBase.h.
|
inherited |
Definition at line 67 of file DataSource.h.
|
inherited |
Definition at line 134 of file IpplParticleBase.h.
|
inherited |
Definition at line 132 of file IpplParticleBase.h.
|
inherited |
Definition at line 139 of file IpplParticleBase.h.
|
inherited |
Definition at line 140 of file IpplParticleBase.h.
|
inherited |
Definition at line 137 of file IpplParticleBase.h.
|
inherited |
Definition at line 136 of file IpplParticleBase.h.
|
inherited |
Definition at line 133 of file IpplParticleBase.h.
|
inherited |
Definition at line 34 of file AbstractParticle.h.
|
inherited |
Definition at line 144 of file IpplParticleBase.h.
|
inherited |
Definition at line 141 of file IpplParticleBase.h.
|
inherited |
| Enumerator | |
|---|---|
| Dim | |
Definition at line 129 of file IpplParticleBase.h.
|
inherited |
| Enumerator | |
|---|---|
| INPUT | |
| OUTPUT | |
| BOTH | |
| DEFAULT | |
Definition at line 64 of file DataSource.h.
|
inline |
Definition at line 32 of file GenArrayParticle.h.
References IpplParticleBase< PLayout >::addAttribute().

|
private |
|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 231 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::AttribList.
Referenced by GenArrayParticle< PLayout, T, N >::GenArrayParticle(), GenParticle< PLayout, T >::GenParticle(), and AmrParticleBase< PLayout >::initializeAmr().
|
inlineinherited |
Definition at line 242 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::AttribList.
|
inherited |
Definition at line 83 of file DataSource.cpp.
References DataSource::connect(), DataSource::connected(), DataConnectCreator::create(), DataSource::createDataSourceObject(), DataSource::DEFAULT, endl(), ERRORMSG, and DataConnect::getDefaultTransferMethod().
Referenced by DataSource::connect(), and DataConnect::connect().

|
inherited |
Definition at line 127 of file DataSource.cpp.
References DataConnect::checkin(), DataSourceObject::connected(), DataSource::ConnectionList, DataSourceObject::getConnection(), and DataSourceObject::getSource().

|
inherited |
Definition at line 69 of file DataSource.cpp.
References DataSource::ConnectionList, and DataSource::findDataSourceObject().
Referenced by DataSource::connect().

|
virtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 410 of file IpplParticleBase.hpp.
References ADDIPPLSTAT, and PAssert.
Referenced by AmrParticleBase< PLayout >::create().
|
inlineprotectedvirtualinherited |
Implements DataSource.
Definition at line 346 of file IpplParticleBase.h.
References make_DataSourceObject().

|
virtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 437 of file IpplParticleBase.hpp.
References ADDIPPLSTAT, and PAssert.
Referenced by AmrParticleBase< PLayout >::createWithID().
|
virtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 491 of file IpplParticleBase.hpp.
References ADDIPPLSTAT, ParticleLayout< T, Dim >::OPTDESTROY, and PAssert.
Referenced by AmrParticleBase< PLayout >::destroy(), and DiscParticle::read().
|
inherited |
Definition at line 143 of file DataSource.cpp.
References a, DataConnect::checkout(), and DataSource::ConnectionList.
Referenced by DataConnect::checkout(), and DataSource::~DataSource().

|
inlineinherited |
Definition at line 243 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::AttribList.
|
inherited |
Definition at line 55 of file DataSource.cpp.
References a, and DataSource::ConnectionList.
Referenced by DataSource::connected().
|
inlineinherited |
Definition at line 235 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::AttribList.
Referenced by DiscParticle::read(), and DiscParticle::write().
|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 207 of file IpplParticleBase.h.
References ParticleLayout< T, Dim >::getBConds(), and IpplParticleBase< PLayout >::Layout.

|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 197 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::DestroyNum.
|
inherited |
Definition at line 250 of file IpplParticleBase.hpp.
|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 198 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::GhostNum.
|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 203 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::Layout.
Referenced by AmrParticleBase< PLayout >::getAmrLayout(), IpplParticleBase< PLayout >::getUpdateFlag(), operator<<(), and IpplParticleBase< PLayout >::setUpdateFlag().
|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 204 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::Layout.
|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 196 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::LocalNum.
Referenced by operator<<(), DiscParticle::read(), and DiscParticle::write().
|
inherited |
Definition at line 346 of file IpplParticleBase.hpp.
References Message::get(), and PAssert.

|
inherited |
Definition at line 394 of file IpplParticleBase.hpp.
References ADDIPPLSTAT, getMessage(), and PAssert.
Referenced by DiscParticle::read().

|
privateinherited |
Definition at line 86 of file IpplParticleBase.hpp.
References IpplInfo::Comm.
|
inherited |
Definition at line 369 of file IpplParticleBase.hpp.
References PAssert.
|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 195 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::TotalNum.
Referenced by operator<<(), and DiscParticle::write().
|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 219 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::getLayout(), and ParticleLayout< T, Dim >::getUpdateFlag().

|
virtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 603 of file IpplParticleBase.hpp.
References PAssert.
|
inherited |
Definition at line 688 of file IpplParticleBase.hpp.
References Message::get(), and PAssert.

|
inherited |
Definition at line 713 of file IpplParticleBase.hpp.
References PAssert.
|
inherited |
Definition at line 663 of file IpplParticleBase.hpp.
References PAssert, and Message::put().

|
inherited |
Definition at line 628 of file IpplParticleBase.hpp.
References PAssert, Message::put(), and Attrib::Distribution::R.

|
virtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 465 of file IpplParticleBase.hpp.
References IpplInfo::getNodes(), IpplInfo::myNode(), and PAssert.

|
inherited |
Definition at line 33 of file IpplParticleBase.hpp.
References PAssert.
|
inherited |
Definition at line 208 of file DataSource.cpp.
References a, and DataSource::ConnectionList.
|
inherited |
Definition at line 195 of file DataSource.cpp.
References a, and DataSource::ConnectionList.
|
inlineinherited |
Definition at line 239 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::AttribList.
Referenced by operator<<(), DiscParticle::read(), and DiscParticle::write().
|
virtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 557 of file IpplParticleBase.hpp.
References ParticleLayout< T, Dim >::OPTDESTROY, and PAssert.
Referenced by AmrParticleBase< PLayout >::performDestroy().
|
inherited |
Definition at line 763 of file IpplParticleBase.hpp.
References endl().

|
inherited |
Definition at line 209 of file IpplParticleBase.hpp.
References PAssert.
|
inherited |
Definition at line 232 of file IpplParticleBase.hpp.
References PAssert.
|
inherited |
Definition at line 180 of file IpplParticleBase.hpp.
References PAssert, and Message::put().
Referenced by DiscParticle::write().

|
inherited |
Definition at line 330 of file IpplParticleBase.hpp.
|
inherited |
Definition at line 314 of file IpplParticleBase.hpp.
References MsgBuffer::get().

|
virtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 96 of file IpplParticleBase.hpp.
References IpplInfo::Comm, COMM_ANY_NODE, Message::get(), IpplInfo::getNodes(), IpplInfo::myNode(), TagMaker::next_tag(), P_LAYOUT_CYCLE, P_RESET_ID_TAG, PAssert, Message::put(), Communicate::receive_block(), Communicate::send(), and sum().

|
pure virtualinherited |
|
inlineinherited |
Definition at line 210 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::Layout, and ParticleLayout< T, Dim >::setBConds().

|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 200 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::LocalNum, and Hypervolume::n.
|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 199 of file IpplParticleBase.h.
References Hypervolume::n, and IpplParticleBase< PLayout >::TotalNum.
|
privateinherited |
Definition at line 49 of file IpplParticleBase.hpp.
References IpplInfo::Comm, Communicate::getNodes(), INCIPPLSTAT, Communicate::myNode(), and Attrib::Distribution::R.
Referenced by IpplParticleBase< PLayout >::IpplParticleBase().

|
inlinevirtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 222 of file IpplParticleBase.h.
References IpplParticleBase< PLayout >::getLayout(), and ParticleLayout< T, Dim >::setUpdateFlag().

|
virtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Definition at line 78 of file IpplParticleBase.hpp.
References IpplInfo::Comm.
|
inherited |
Definition at line 737 of file IpplParticleBase.hpp.
|
virtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Reimplemented in AmrParticleBase< PLayout >.
Definition at line 523 of file IpplParticleBase.hpp.
References INCIPPLSTAT, and PAssert.
Referenced by DiscParticle::read().
|
virtualinherited |
Implements AbstractParticle< PLayout::Position_t, PLayout::Dimension >.
Reimplemented in AmrParticleBase< PLayout >.
Definition at line 540 of file IpplParticleBase.hpp.
References INCIPPLSTAT, and PAssert.
|
inherited |
Definition at line 176 of file DataSource.cpp.
References a, and DataSource::ConnectionList.
|
inherited |
Definition at line 275 of file IpplParticleBase.hpp.
|
inherited |
Definition at line 291 of file IpplParticleBase.hpp.
|
privateinherited |
Definition at line 362 of file IpplParticleBase.h.
Referenced by IpplParticleBase< PLayout >::addAttribute(), IpplParticleBase< PLayout >::begin(), IpplParticleBase< PLayout >::end(), IpplParticleBase< PLayout >::getAttribute(), and IpplParticleBase< PLayout >::numAttributes().
|
privateinherited |
Definition at line 138 of file DataSource.h.
Referenced by DataSource::connect(), DataSource::connected(), DataSource::disconnect(), DataSource::findDataSourceObject(), DataSource::interact(), and DataSource::updateConnection().
| ParticleAttrib<T> GenArrayParticle< PLayout, T, N >::data[N] |
Definition at line 29 of file GenArrayParticle.h.
|
protectedinherited |
Definition at line 355 of file IpplParticleBase.h.
|
privateinherited |
Definition at line 369 of file IpplParticleBase.h.
Referenced by IpplParticleBase< PLayout >::getDestroyNum().
|
privateinherited |
Definition at line 370 of file IpplParticleBase.h.
Referenced by IpplParticleBase< PLayout >::getGhostNum().
|
inherited |
Definition at line 148 of file IpplParticleBase.h.
|
inherited |
Definition at line 93 of file AbstractParticle.h.
|
privateinherited |
Definition at line 359 of file IpplParticleBase.h.
Referenced by IpplParticleBase< PLayout >::getBConds(), IpplParticleBase< PLayout >::getLayout(), IpplParticleBase< PLayout >::setBConds(), and IpplParticleBase< PLayout >::~IpplParticleBase().
|
privateinherited |
Definition at line 368 of file IpplParticleBase.h.
Referenced by IpplParticleBase< PLayout >::getLocalNum(), and IpplParticleBase< PLayout >::setLocalNum().
|
privateinherited |
Definition at line 373 of file IpplParticleBase.h.
|
inherited |
Definition at line 147 of file IpplParticleBase.h.
|
inherited |
Definition at line 92 of file AbstractParticle.h.
|
privateinherited |
Definition at line 367 of file IpplParticleBase.h.
Referenced by IpplParticleBase< PLayout >::getTotalNum(), and IpplParticleBase< PLayout >::setTotalNum().