13 template<
typename P,
typename I>
20 template<
typename P,
typename InteractionType>
31 template<
typename T,
typename InteractionType>
36 vector<AParallelInteractionStorage*>::iterator exiter=m_exIG.begin();
37 while(exiter!=m_exIG.end() && (!in_exig)){
38 in_exig=(*exiter)->isIn(tv);
48 template<
typename T,
typename InteractionType>
51 console.
XDebug() <<
"ParallelInteractionStorage_NE::Update\n";
55 if(m_update_timestamp != this->m_ppa->getTimeStamp()){
57 this->m_interactions.clear();
58 m_set.erase(m_set.begin(),m_set.end());
68 tv.push_back(
iter->first->getID());
69 tv.push_back(
iter->second->getID());
71 this->m_interactions.push_back(InteractionType(
iter->first,
iter->second,m_param));
72 m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
87 tv.push_back(
iter->first->getID());
88 tv.push_back(
iter->second->getID());
90 this->m_interactions.push_back(InteractionType(
iter->first,
iter->second,m_param));
91 m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
96 m_update_timestamp = this->m_ppa->getTimeStamp();
99 console.
XDebug() <<
"end ParallelInteractionStorage_NE::Update\n";
108 template<
typename P,
typename InteractionType>
113 res=m_set.find(make_pair(pids[0],pids[1]))!=m_set.end();
121 template<
typename P,
typename InteractionType>
126 << this->m_interactions.size()
127 <<
" interaction forces\n";
130 typename list<InteractionType>::iterator it = this->m_interactions.begin();
131 it != this->m_interactions.end();
138 template<
typename P,
typename InteractionType>
143 << this->m_interactions.size()
144 <<
" interaction heat transfers\n" ;
147 typename list<InteractionType>::iterator it = this->m_interactions.begin();
148 it != this->m_interactions.end();
virtual void calcHeatTrans()
Definition: pi_storage_ne.hpp:139
I::ParameterType m_param
Definition: pi_storage_ne.h:35
templated abstract base class for parallel interaction storage array. Adds the vector of interactions...
Definition: CheckedScalarInteractionFieldSlave.h:19
int m_update_timestamp
Definition: pi_storage_ne.h:31
boost::python::object iter(const boost::python::object &pyOb)
Definition: Util.h:25
bool isExcluded(const vector< int >)
Definition: pi_storage_ne.hpp:32
parrallel particle storage array with neighborsearch and variable exchange
Definition: SubLattice.h:61
virtual void addExIG(AParallelInteractionStorage *)
Definition: pi_storage_ne.hpp:21
virtual bool isIn(const vector< int > &)
do nothing
Definition: pi_storage_ne.hpp:109
abstract base class for parallel interaction storage array
Definition: pi_storage.h:44
BasicCon & XDebug(bool h=true)
set verbose level of next message to "xdg"
Definition: console.cpp:316
BasicCon & Debug(bool h=true)
set verbose level of next message to "dbg"
Definition: console.cpp:305
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
virtual bool update()
Definition: pi_storage_ne.hpp:49
virtual void calcForces()
Definition: pi_storage_ne.hpp:122
ParallelInteractionStorage_NE(AParallelParticleArray *, const typename I::ParameterType &)
Definition: pi_storage_ne.hpp:14
NeighborTable< T >::pairlist::iterator PairListIterator
Definition: pp_array.h:78