| 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 ); |
| 36 |
|
the_event->event_type = MOLECULE; |
| 37 |
|
the_event->err_msg = NULL; |
| 38 |
|
the_event->evt.blk_index = mol_index; |
| 39 |
+ |
|
| 40 |
+ |
if( !event_handler( the_event ) ) interface_error( the_event ); |
| 41 |
+ |
#ifdef IS_MPI |
| 42 |
+ |
throwMPIEvent(the_event); |
| 43 |
+ |
#endif |
| 44 |
+ |
|
| 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 |
| 130 |
|
free( the_event ); |
| 131 |
|
} |
| 132 |
|
|
| 133 |
+ |
void init_zconstraint( int zconstraint_index ){ |
| 134 |
+ |
event* the_event; |
| 135 |
|
|
| 136 |
+ |
the_event = (event* )malloc( sizeof( event ) ); |
| 137 |
+ |
|
| 138 |
+ |
the_event->event_type = ZCONSTRAINT; |
| 139 |
+ |
the_event->err_msg = NULL; |
| 140 |
+ |
the_event->evt.blk_index = zconstraint_index; |
| 141 |
+ |
|
| 142 |
+ |
if( !event_handler( the_event ) ) interface_error( the_event ); |
| 143 |
+ |
#ifdef IS_MPI |
| 144 |
+ |
throwMPIEvent(the_event); |
| 145 |
+ |
#endif |
| 146 |
+ |
|
| 147 |
+ |
free( the_event ); |
| 148 |
+ |
} |
| 149 |
+ |
|
| 150 |
+ |
|
| 151 |
|
/* |
| 152 |
|
* the next few deal with the statement initializations |
| 153 |
|
*/ |