--- trunk/mdtools/BASS_parse/interface.c 2002/09/25 22:51:14 118 +++ trunk/mdtools/BASS_parse/interface.c 2002/10/09 22:29:40 131 @@ -4,6 +4,9 @@ #include "interface.h" #include "../headers/BASS_interface.h" +#ifdef IS_MPI +#include "../headers/mpiInterface.h" +#endif void interface_error( event* the_event ); @@ -17,7 +20,7 @@ void init_component( int comp_index ){ the_event->evt.blk_index = comp_index; if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif @@ -34,7 +37,7 @@ void init_molecule( int mol_index ){ the_event->evt.blk_index = mol_index; if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif @@ -51,7 +54,7 @@ void init_atom( int atom_index ){ the_event->evt.blk_index = atom_index; if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif @@ -68,7 +71,7 @@ void init_bond( int bond_index ){ the_event->evt.blk_index = bond_index; if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif @@ -85,7 +88,7 @@ void init_bend( int bend_index ){ the_event->evt.blk_index = bend_index; if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif @@ -102,7 +105,7 @@ void init_torsion( int torsion_index ){ the_event->evt.blk_index = torsion_index; if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif @@ -128,7 +131,7 @@ void init_members( struct node_tag* the_node, the_event->evt.mbr.d = the_node->the_data.mbr.d; if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif @@ -146,7 +149,7 @@ void init_constraint( struct node_tag* the_node, the_event->evt.cnstr = the_node->the_data.cnstr.constraint_val; if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif @@ -183,7 +186,7 @@ void init_assignment( struct node_tag* the_node, } if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif @@ -203,7 +206,7 @@ void init_position( struct node_tag* the_node, the_event->evt.pos.z = the_node->the_data.pos.z; if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif @@ -223,7 +226,7 @@ void init_orientation( struct node_tag* the_node, the_event->evt.ornt.z = the_node->the_data.ort.z; if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif @@ -240,7 +243,7 @@ void end_of_block( void ){ the_event->err_msg = NULL; if( !event_handler( the_event ) ) interface_error( the_event ); -#ifdef MPI +#ifdef IS_MPI throwMPIEvent(the_event); #endif