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

Comparing trunk/mdtools/BASS_parse/interface.c (file contents):
Revision 118 by chuckv, Wed Sep 25 22:51:14 2002 UTC vs.
Revision 131 by chuckv, Wed Oct 9 22:29:40 2002 UTC

# Line 4 | Line 4
4  
5   #include "interface.h"
6   #include "../headers/BASS_interface.h"
7 + #ifdef IS_MPI
8 + #include "../headers/mpiInterface.h"
9 + #endif
10  
11   void interface_error( event* the_event );
12  
# Line 17 | Line 20 | void init_component( int comp_index ){
20    the_event->evt.blk_index = comp_index;
21  
22    if( !event_handler( the_event ) ) interface_error( the_event );
23 < #ifdef MPI
23 > #ifdef IS_MPI
24    throwMPIEvent(the_event);
25   #endif
26  
# Line 34 | Line 37 | void init_molecule( int mol_index ){
37    the_event->evt.blk_index = mol_index;
38  
39    if( !event_handler( the_event ) ) interface_error( the_event );
40 < #ifdef MPI
40 > #ifdef IS_MPI
41    throwMPIEvent(the_event);
42   #endif
43    
# Line 51 | Line 54 | void init_atom( int atom_index ){
54    the_event->evt.blk_index = atom_index;
55  
56    if( !event_handler( the_event ) ) interface_error( the_event );
57 < #ifdef MPI
57 > #ifdef IS_MPI
58    throwMPIEvent(the_event);
59   #endif
60    
# Line 68 | Line 71 | void init_bond( int bond_index ){
71    the_event->evt.blk_index = bond_index;
72  
73    if( !event_handler( the_event ) ) interface_error( the_event );
74 < #ifdef MPI
74 > #ifdef IS_MPI
75    throwMPIEvent(the_event);
76   #endif
77    
# Line 85 | Line 88 | void init_bend( int bend_index ){
88    the_event->evt.blk_index = bend_index;
89  
90    if( !event_handler( the_event ) ) interface_error( the_event );
91 < #ifdef MPI
91 > #ifdef IS_MPI
92    throwMPIEvent(the_event);
93   #endif
94    
# Line 102 | Line 105 | void init_torsion( int torsion_index ){
105    the_event->evt.blk_index = torsion_index;
106  
107    if( !event_handler( the_event ) ) interface_error( the_event );
108 < #ifdef MPI
108 > #ifdef IS_MPI
109    throwMPIEvent(the_event);
110   #endif
111    
# Line 128 | Line 131 | void init_members( struct node_tag* the_node,
131    the_event->evt.mbr.d = the_node->the_data.mbr.d;
132  
133    if( !event_handler( the_event ) ) interface_error( the_event );
134 < #ifdef MPI
134 > #ifdef IS_MPI
135    throwMPIEvent(the_event);
136   #endif
137    
# Line 146 | Line 149 | void init_constraint( struct node_tag* the_node,
149    the_event->evt.cnstr = the_node->the_data.cnstr.constraint_val;
150  
151    if( !event_handler( the_event ) ) interface_error( the_event );
152 < #ifdef MPI
152 > #ifdef IS_MPI
153    throwMPIEvent(the_event);
154   #endif
155    
# Line 183 | Line 186 | void init_assignment( struct node_tag* the_node,
186    }
187  
188    if( !event_handler( the_event ) ) interface_error( the_event );
189 < #ifdef MPI
189 > #ifdef IS_MPI
190    throwMPIEvent(the_event);
191   #endif
192    
# Line 203 | Line 206 | void init_position( struct node_tag* the_node,
206    the_event->evt.pos.z = the_node->the_data.pos.z;
207  
208    if( !event_handler( the_event ) ) interface_error( the_event );
209 < #ifdef MPI
209 > #ifdef IS_MPI
210    throwMPIEvent(the_event);
211   #endif
212    
# Line 223 | Line 226 | void init_orientation( struct node_tag* the_node,
226    the_event->evt.ornt.z = the_node->the_data.ort.z;
227  
228    if( !event_handler( the_event ) ) interface_error( the_event );
229 < #ifdef MPI
229 > #ifdef IS_MPI
230    throwMPIEvent(the_event);
231   #endif
232    
# Line 240 | Line 243 | void end_of_block( void ){
243    the_event->err_msg = NULL;
244  
245    if( !event_handler( the_event ) ) interface_error( the_event );
246 < #ifdef MPI
246 > #ifdef IS_MPI
247    throwMPIEvent(the_event);
248   #endif
249    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines