| 4 |
|
|
| 5 |
|
#include "MakeStamps.hpp" |
| 6 |
|
#include "MoleculeStamp.hpp" |
| 7 |
+ |
#include "RigidBodyStamp.hpp" |
| 8 |
|
#include "simError.h" |
| 9 |
|
#ifdef IS_MPI |
| 10 |
|
#include "mpiBASS.h" |
| 285 |
|
return 1; |
| 286 |
|
} |
| 287 |
|
|
| 288 |
< |
int MakeStamps::newAtom( event* the_event ){ |
| 288 |
> |
int MakeStamps::newAtomInMolecule( event* the_event ){ |
| 289 |
|
|
| 290 |
|
current_atom = new AtomStamp; |
| 291 |
|
|
| 292 |
|
the_event->err_msg = current_mol->addAtom( current_atom, |
| 293 |
|
the_event->evt.blk_index ); |
| 294 |
+ |
|
| 295 |
|
if( the_event->err_msg != NULL ) return 0; |
| 296 |
|
return 1; |
| 297 |
|
} |
| 298 |
|
|
| 299 |
+ |
int MakeStamps::newAtomInRigidBody( event* the_event ){ |
| 300 |
+ |
|
| 301 |
+ |
current_atom = new AtomStamp; |
| 302 |
+ |
|
| 303 |
+ |
the_event->err_msg = current_rigidbody->addAtom( current_atom, |
| 304 |
+ |
the_event->evt.blk_index ); |
| 305 |
+ |
|
| 306 |
+ |
if( the_event->err_msg != NULL ) return 0; |
| 307 |
+ |
return 1; |
| 308 |
+ |
} |
| 309 |
+ |
|
| 310 |
|
int MakeStamps::atomPosition( event* the_event ){ |
| 311 |
|
|
| 312 |
|
current_atom->setPosition( the_event->evt.pos.x, |