ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libBASS/MakeStamps.cpp
(Generate patch)

Comparing trunk/OOPSE/libBASS/MakeStamps.cpp (file contents):
Revision 980 by gezelter, Mon Jan 19 16:08:21 2004 UTC vs.
Revision 981 by gezelter, Mon Jan 26 18:52:42 2004 UTC

# Line 4 | Line 4
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"
# Line 284 | Line 285 | int MakeStamps::newAtom( event* the_event ){
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,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines