13 #include "Foundation/console.h"
15 template<
typename P,
typename I>
21 template<
typename P,
typename I>
24 console.
XDebug() <<
"CDampingGroup<T>::Update()\n" ;
26 this->m_interactions.erase(
27 this->m_interactions.begin(),
28 this->m_interactions.end()
31 typename ParallelParticleArray<P>::ParticleListHandle plh =
34 typename ParallelParticleArray<P>::ParticleListIterator iter=plh->begin();
38 this->m_interactions.push_back(I(*iter,&m_param));
40 console.
XDebug() <<
"end CDampingGroup<T>::Update()\n" ;
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);