Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 495 Bytes
#include<woo/pkg/dem/ContactHook.hpp>
#include<woo/pkg/dem/Particle.hpp>
#include<woo/pkg/dem/Contact.hpp>
WOO_PLUGIN(dem,(ContactHook)(CountContactsHook));
WOO_IMPL__CLASS_BASE_DOC_ATTRS(woo_dem_ContactHook__CLASS_BASE_DOC_ATTRS);
WOO_IMPL__CLASS_BASE_DOC_ATTRS(woo_dem_CountContactsHook__CLASS_BASE_DOC_ATTRS);
void CountContactsHook::hookNew(DemField& dem, const shared_ptr<Contact>& C){ nNew+=1; }
void CountContactsHook::hookDel(DemField& dem, const shared_ptr<Contact>& C){ nDel+=1; }
You can’t perform that action at this time.