ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/mpiInterface.h
Revision: 136
Committed: Wed Oct 16 20:01:53 2002 UTC (22 years, 6 months ago) by chuckv
Content type: text/plain
File size: 1107 byte(s)
Log Message:
Added lhs of assignments..

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 chuckv 136 char lhs[80];
39 chuckv 120 } mBEvent;
40    
41     // types for mpiBASSEvent.type
42     #define mpiMOLECULE 0
43     #define mpiATOM 1
44     #define mpiBOND 2
45     #define mpiBEND 3
46     #define mpiTORSION 4
47     #define mpiCOMPONENT 5
48     #define mpiPOSITION 6
49     #define mpiASSIGNMENT_i 7
50     #define mpiASSIGNMENT_d 8
51     #define mpiASSIGNMENT_s 9
52     #define mpiMEMBER 10
53    
54     #define mpiCONSTRAINT 11
55     #define mpiORIENTATION 12
56     #define mpiBLOCK_END 13
57    
58    
59     // Define the mpi datatype
60 chuckv 135 #ifdef __mpiBASSEVENT
61 chuckv 120 MPI_Datatype mpiBASSEventType;
62 chuckv 135 #endif
63 chuckv 120
64     #endif