7975c236134cde1ea478a619f309f0552f87da03
[alexxy/gromacs.git] / include / block_tx.h
1 /*
2  * $Id$
3  * 
4  *       This source code is part of
5  * 
6  *        G   R   O   M   A   C   S
7  * 
8  * GROningen MAchine for Chemical Simulations
9  * 
10  *               VERSION 2.0
11  * 
12  * Copyright (c) 1991-1999
13  * BIOSON Research Institute, Dept. of Biophysical Chemistry
14  * University of Groningen, The Netherlands
15  * 
16  * Please refer to:
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)
20  * 
21  * Also check out our WWW page:
22  * http://md.chem.rug.nl/~gmx
23  * or e-mail to:
24  * gromacs@chem.rug.nl
25  * 
26  * And Hey:
27  * Good ROcking Metal Altar for Chronical Sinners
28  */
29 static char *SRCID_block_tx_h = "$Id$";
30
31 #ifdef HAVE_CONFIG_H
32 #include <config.h>
33 #endif
34
35 extern void _blocktx(int dest,int nelem,int size,void *data);
36 extern void _blockrx(int src,int nelem,int size,void *data);
37
38 #define blocktx(dest,dta)       _blocktx((dest),1,sizeof(dta),&(dta))
39 #define blockrx(src,dta)        _blockrx((src),1,sizeof(dta),&(dta))
40 #define nblocktx(dest,n,dta)    _blocktx((dest),1,(n)*(sizeof(*dta)),dta)
41 #define nblockrx(src,n,dta)     _blockrx((src),1,(n)*(sizeof(*dta)),(dta))
42
43 extern void mv_block(int dest,t_block *block);
44 extern void ld_block(int src,t_block *block);
45 /* Send and receive an t_block type */