4 * This source code is part of
8 * GROningen MAchine for Chemical Simulations
12 * Copyright (c) 1991-1999
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
17 * GROMACS: A message-passing parallel molecular dynamics implementation
18 * H.J.C. Berendsen, D. van der Spoel and R. van Drunen
19 * Comp. Phys. Comm. 91, 43-56 (1995)
21 * Also check out our WWW page:
22 * http://md.chem.rug.nl/~gmx
27 * Good ROcking Metal Altar for Chronical Sinners
33 static char *SRCID_pvmio_h
= "$Id$";
37 extern void pvmio_tx(int pid
,void *buf
,int bufsize
);
38 extern void pvmio_tx_wait(int pid
);
39 extern void pvmio_txs(int pid
,void *buf
,int bufsize
);
40 extern void pvmio_rx(int pid
,void *buf
,int bufsize
);
41 extern void pvmio_rx_wait(int pid
);
42 extern void pvmio_rxs(int pid
,void *buf
,int bufsize
);
43 extern int pvmio_setup(char *argv
[],int nprocs
);
44 /* If this is the master, spawn some kids. Return pid */
46 extern void pvmio_stat(FILE *fp
,char *msg
);
47 extern int pvmnodenumber(void);
48 extern int pvmnodecount(void);
49 extern int pvm_idle_send(void);
50 extern int pvm_idle_rec(void);
51 extern void pvm_left_right(int nprocs
,int pid
,int *left
,int *right
);
52 extern void pvmio_tx_rx(int send_pid
,void *send_buf
,int send_bufsize
,
53 int rec_pid
,void *rec_buf
,int rec_bufsize
);
54 extern void pvmio_wait(int left
,int right
);
55 extern char *pvm_error(int errorno
);
56 extern void pvmio_sync_ring(int pid
,int nprocs
,int left
,int right
);
57 extern void pvm_reset_idle();
58 extern void pvm_abort(int pid
,int nprocs
,int errno
);
60 #define gmx_tx pvmio_tx
61 #define gmx_tx_wait pvmio_tx_wait
62 #define gmx_txs pvmio_txs
63 #define gmx_rx pvmio_rx
64 #define gmx_rx_wait pvmio_rx_wait
65 #define gmx_rxs pvmio_rxs
66 #define gmx_stat pvmio_stat
67 #define gmx_wait pvmio_wait
68 #define gmx_cpu_num pvmnodecount
69 #define gmx_cpu_id pvmnodenumber
70 #define gmx_left_right pvm_left_right
71 #define gmx_idle_send pvm_idle_send
72 #define gmx_idle_rec pvm_idle_rec
73 #define gmx_reset_idle pvm_reset_idle
74 #define gmx_abort pvm_abort