15 template<
typename P,
typename I>
21 template<
typename P,
typename I>
26 this->m_interactions.erase(
27 this->m_interactions.begin(),
28 this->m_interactions.end()
38 this->m_interactions.push_back(I(*
iter,&m_param));
46 template<
typename P,
typename InteractionType>
51 << this->m_interactions.size()
52 <<
" damping forces\n" ;
55 typename std::list<InteractionType>::iterator it = this->m_interactions.begin();
56 it != this->m_interactions.end();
63 template<
typename P,
typename InteractionType>
70 <<
"Setting time step size for "
71 << this->m_interactions.size()
72 <<
" damping forces\n";
74 m_param.setTimeStepSize(dt);
76 typename std::list<InteractionType>::iterator it = this->m_interactions.begin();
77 it != this->m_interactions.end();
80 it->setTimeStepSize(dt);