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 * Green Red Orange Magenta Azure Cyan Skyblue
29 static char *SRCID_libnet_c
= "$Id$";
37 /* Network routines */
39 #define MYFATAL(str) fatal_error(0,"Routine %s called in %s, %d",str,__FILE__,__LINE__)
41 void gmx_tx(int pid
,void *bufptr
,int bufsize
)
46 void gmx_tx_wait(int pid
)
48 MYFATAL("gmx_tx_wait");
51 void gmx_txs(int pid
,void *bufptr
,int bufsize
)
56 void gmx_rx(int pid
,void *bufptr
,int bufsize
)
61 void gmx_rx_wait(int pid
)
63 MYFATAL("gmx_rx_wait");
66 void gmx_rxs(int pid
,void *bufptr
,int bufsize
)
81 int get_idle_rec(void)
86 int get_idle_send(void)
91 void gmx_left_right(int nprocs
,int pid
,int *left
,int *right
)