| 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 ); |
| 113 |
|
free( the_event ); |
| 114 |
|
} |
| 115 |
|
|
| 116 |
+ |
void init_zconstraint( int zconstraint_index ){ |
| 117 |
+ |
event* the_event; |
| 118 |
|
|
| 119 |
+ |
the_event = (event* )malloc( sizeof( event ) ); |
| 120 |
+ |
|
| 121 |
+ |
the_event->event_type = ZCONSTRAINT; |
| 122 |
+ |
the_event->err_msg = NULL; |
| 123 |
+ |
the_event->evt.blk_index = zconstraint_index; |
| 124 |
+ |
|
| 125 |
+ |
if( !event_handler( the_event ) ) interface_error( the_event ); |
| 126 |
+ |
#ifdef IS_MPI |
| 127 |
+ |
throwMPIEvent(the_event); |
| 128 |
+ |
#endif |
| 129 |
+ |
|
| 130 |
+ |
free( the_event ); |
| 131 |
+ |
} |
| 132 |
+ |
|
| 133 |
+ |
|
| 134 |
|
/* |
| 135 |
|
* the next few deal with the statement initializations |
| 136 |
|
*/ |