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

Comparing trunk/OOPSE/libBASS/interface.c (file contents):
Revision 675 by mmeineke, Mon Aug 11 19:38:44 2003 UTC vs.
Revision 957 by gezelter, Mon Jan 19 16:08:21 2004 UTC

# Line 2 | Line 2
2   #include <stdlib.h>
3   #include <string.h>
4  
5 < #include <parse_interface.h>
6 < #include <BASS_interface.h>
7 < #include <simError.h>
5 > #include "parse_interface.h"
6 > #include "BASS_interface.h"
7 > #include "simError.h"
8   #ifdef IS_MPI
9 < #include <mpiBASS.h>
9 > #include "mpiBASS.h"
10   #endif
11  
12   void interface_error( event* the_event );
# Line 45 | Line 45 | void init_molecule( int mol_index ){
45    free( the_event );  
46   }
47  
48 + void init_rigidbody( int rigidbody_index ){
49 +  event* the_event;
50 +
51 +  the_event = (event* )malloc( sizeof( event ) );
52 +  
53 +  the_event->event_type = RIGIDBODY;
54 +  the_event->err_msg = NULL;
55 +  the_event->evt.blk_index = rigidbody_index;
56 +
57 +  if( !event_handler( the_event ) ) interface_error( the_event );
58 + #ifdef IS_MPI
59 +  throwMPIEvent(the_event);
60 + #endif
61 +  
62 +  free( the_event );  
63 + }
64 +
65   void init_atom( int atom_index ){
66    event* the_event;
67    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines