changed reading hint
[gromacs/adressmacs.git] / include / nrnb.h
blobbb217b28602781df55e44b54b2c675251cb78816
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
12 * Copyright (c) 1991-1999
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
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)
21 * Also check out our WWW page:
22 * http://md.chem.rug.nl/~gmx
23 * or e-mail to:
24 * gromacs@chem.rug.nl
26 * And Hey:
27 * Good ROcking Metal Altar for Chronical Sinners
30 #ifndef _nrnb_h
31 #define _nrnb_h
33 static char *SRCID_nrnb_h = "$Id$";
35 #ifdef HAVE_IDENT
36 #ident "@(#) nrnb.h 1.9 2/2/97"
37 #endif /* HAVE_IDENT */
38 #include "typedefs.h"
40 extern void init_nrnb(t_nrnb *nrnb);
42 extern void cp_nrnb(t_nrnb *dest, t_nrnb *src);
44 extern void add_nrnb(t_nrnb *dest, t_nrnb *s1, t_nrnb *s2);
46 extern void print_nrnb(FILE *out, t_nrnb *nrnb);
48 extern void _inc_nrnb(t_nrnb *nrnb,int enr,int inc,char *file,int line);
50 #ifdef DEBUG_NRNB
51 #define inc_nrnb(nrnb,enr,inc) _inc_nrnb(nrnb,enr,inc,__FILE__,__LINE__)
52 #else
53 #define inc_nrnb(nrnb,enr,inc) (nrnb)->n[enr] += inc
54 #endif
56 extern void print_perf(FILE *out,double cputime,double realtime,real runtime,
57 t_nrnb *nrnb,int nprocs);
59 extern void pr_load(FILE *log,int nprocs,t_nrnb nrnb[]);
60 /* Print detailed load balancing info */
62 extern int cost_nrnb(int enr);
63 /* Cost in i860 cycles of this component of MD */
65 extern char *nrnb_str(int enr);
66 /* Name of this component */
68 #endif /* _nrnb_h */