13 template<
typename P,
typename I>
33 template<
typename T,
typename InteractionType>
36 console.
XDebug() <<
"ParallelInteractionStorage_NE_T::Update\n";
40 if(this->m_update_timestamp != this->m_ppa->getTimeStamp()){
42 this->m_interactions.clear();
43 this->m_set.erase(this->m_set.begin(),this->m_set.end());
53 int t1=
iter->first->getTag();
54 int t2=
iter->second->getTag();
62 if(((t1 & m_mask1)==(m_tag1 & m_mask1)) && ((t2 & m_mask2)==(m_tag2 & m_mask2))){
65 tv.push_back(
iter->first->getID());
66 tv.push_back(
iter->second->getID());
67 if(!this->isExcluded(tv)){
68 this->m_interactions.push_back(InteractionType(
iter->first,
iter->second,this->m_param));
69 this->m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
83 int t1=
iter->first->getTag();
84 int t2=
iter->second->getTag();
92 if(((t1 & m_mask1)==(m_tag1 & m_mask1)) && ((t2 & m_mask2)==(m_tag2 & m_mask2))){
95 tv.push_back(
iter->first->getID());
96 tv.push_back(
iter->second->getID());
97 if(!this->isExcluded(tv)){
98 this->m_interactions.push_back(InteractionType(
iter->first,
iter->second,this->m_param));
99 this->m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
105 this->m_update_timestamp = this->m_ppa->getTimeStamp();
107 console.
XDebug() <<
"added " << count_l <<
" pairs to EIG\n";
108 console.
XDebug() <<
"end ParallelInteractionStorage_NE_T::Update\n";
int m_tag1
Definition: pi_storage_ne_t.h:33
boost::python::object iter(const boost::python::object &pyOb)
Definition: Util.h:25
parrallel particle storage array with neighborsearch and variable exchange
Definition: SubLattice.h:61
virtual bool update()
Definition: pi_storage_ne_t.hpp:34
BasicCon & XDebug(bool h=true)
set verbose level of next message to "xdg"
Definition: console.cpp:316
int m_mask1
Definition: pi_storage_ne_t.h:34
int m_tag2
Definition: pi_storage_ne_t.h:33
int m_mask2
Definition: pi_storage_ne_t.h:34
abstract base class for parallel particle storage array
Definition: pp_array.h:41
Template class for a handle/ref. counted pointer.
Definition: handle.h:26
parallel storage array without exchange for dynamically created interactions (elastic) ...
Definition: pi_storage_ne.h:28
ParallelInteractionStorage_NE_T(AParallelParticleArray *, const typename I::ParameterType &, int, int, int, int)
Definition: pi_storage_ne_t.hpp:14
NeighborTable< T >::pairlist::iterator PairListIterator
Definition: pp_array.h:78