ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/mpiInterface.h
Revision: 135
Committed: Fri Oct 11 17:29:40 2002 UTC (22 years, 6 months ago) by chuckv
Content type: text/plain
File size: 1089 byte(s)
Log Message:
Fixed double inclusion of mpiBASSEventType with define in
header file.

File Contents

# User Rev Content
1 chuckv 131 #ifndef __MPIINTERFACE_H
2 chuckv 120 #define __MPIINTERFACE_H
3    
4     #define MPI_INTERFACE_ABORT 2
5     #define MPI_INTERFACE_DONE 1
6 chuckv 134 #define MPI_INTERFACE_CONTINUE 0
7 chuckv 120
8    
9    
10 chuckv 131 #include <mpi.h>
11 chuckv 120
12 chuckv 131 #ifndef __is_lex__
13 chuckv 120 #include "BASS_interface.h"
14 chuckv 131 #endif
15 chuckv 120
16 chuckv 124 #ifdef __cplusplus
17     extern "C" {
18     #endif
19 chuckv 120
20 chuckv 131 void mpiInterfaceExit(void);
21     void mpiEventInit(void);
22     #ifndef __is_lex__
23     void throwMPIEvent(event* event);
24     void mpiEventLoop(void);
25     #endif
26 chuckv 124
27     #ifdef __cplusplus
28     }
29     #endif
30    
31 chuckv 120 // Structure to pass mpi a BASS event
32    
33     typedef struct mpiBASSEvent{
34     int type;
35     double d1,d2,d3;
36     int i1,i2,i3,i4;
37     char cArray[120];
38     } mBEvent;
39    
40     // types for mpiBASSEvent.type
41     #define mpiMOLECULE 0
42     #define mpiATOM 1
43     #define mpiBOND 2
44     #define mpiBEND 3
45     #define mpiTORSION 4
46     #define mpiCOMPONENT 5
47     #define mpiPOSITION 6
48     #define mpiASSIGNMENT_i 7
49     #define mpiASSIGNMENT_d 8
50     #define mpiASSIGNMENT_s 9
51     #define mpiMEMBER 10
52    
53     #define mpiCONSTRAINT 11
54     #define mpiORIENTATION 12
55     #define mpiBLOCK_END 13
56    
57    
58     // Define the mpi datatype
59 chuckv 135 #ifdef __mpiBASSEVENT
60 chuckv 120 MPI_Datatype mpiBASSEventType;
61 chuckv 135 #endif
62 chuckv 120
63     #endif