21 this->m_update_timestamp=0;
30 this->m_update_timestamp=0;
44 console.
Debug() <<
"calculating " << m_interactions.size() <<
" elastic forces\n" ;
46 for(vector<CRotThermElasticInteraction>::iterator it=m_interactions.begin();it!=m_interactions.end();it++){
62 m_interactions.erase(m_interactions.begin(),m_interactions.end());
63 this->m_set.erase(this->m_set.begin(),this->m_set.end());
72 tv.push_back(
iter->first->getID());
73 tv.push_back(
iter->second->getID());
75 if(!this->m_exIG->isIn(tv)){
77 this->m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
79 <<
iter->second->getID() <<
"\n";
83 <<
iter->second->getID() <<
"\n";
87 this->m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
89 <<
iter->second->getID() <<
"\n";
100 tv.push_back(
iter->first->getID());
101 tv.push_back(
iter->second->getID());
102 if(this->m_exIG!=
NULL){
103 if(!this->m_exIG->isIn(tv)){
105 this->m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
107 <<
iter->second->getID() <<
"\n";
111 <<
iter->second->getID() <<
"\n";
115 this->m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
117 <<
iter->second->getID() <<
"\n";
122 console.
XDebug() <<
"added " << count_l <<
" pairs to EIG\n";
124 console.
XDebug() <<
"end CElasticInteractionGroup::Update\n";
128 ostream& operator<<(ostream& ost,const CRotThermElasticInteractionGroup<T>& E)
130 ost <<
"CElasticInteractionGroup : \n";
131 for(vector<CRotThermElasticInteraction>::const_iterator it=E.m_interactions.begin();it!=E.m_interactions.end();it++){
132 ost << *it <<
" , " ;
134 ost <<
"exchange list: \n";
135 for(set<pair<int,int> >::const_iterator vit=E.m_exchg_list.begin();vit!=E.m_exchg_list.end();vit++){
136 ost <<
"[ " << vit->first <<
" from " << vit->second <<
" ] , ";
PairListHandle getNewPairList()
Get list of new pairs. Forwards to NTable::getNewList().
Definition: pp_array.h:189
virtual void Update(ParallelParticleArray< T > *)
Definition: RotThermElasticInteractionGroup.hpp:55
boost::python::object iter(const boost::python::object &pyOb)
Definition: Util.h:25
double getSpringConst() const
Definition: RotThermElasticInteraction.h:40
double getDiffusivity() const
Definition: RotThermElasticInteraction.h:44
parrallel particle storage array with neighborsearch and variable exchange
Definition: SubLattice.h:61
PairListHandle getFullPairList()
Get list of all pairs. Forwards to NTable::getFullList().
Definition: pp_array.h:187
CRotThermElasticInteractionGroup()
Definition: RotThermElasticInteractionGroup.hpp:18
#define NULL
Definition: t_list.h:17
void setParam(const CRotThermElasticIGP *)
Definition: RotThermElasticInteractionGroup.hpp:34
BasicCon & XDebug(bool h=true)
set verbose level of next message to "xdg"
Definition: console.cpp:316
virtual void calcForces()
Definition: RotThermElasticInteractionGroup.hpp:41
BasicCon & Debug(bool h=true)
set verbose level of next message to "dbg"
Definition: console.cpp:305
int getTimeStamp()
return time stamp of last rebuild
Definition: pp_array.h:57
Template class for a handle/ref. counted pointer.
Definition: handle.h:26
Definition: RotThermElasticInteraction.h:61
NeighborTable< T >::pairlist::iterator PairListIterator
Definition: pp_array.h:78
Definition: RotThermElasticInteraction.h:23