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