905654d80bf1e8bf2b65ac72adfe1c62375786db
[alexxy/gromacs.git] / include / main.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
30 #ifndef _main_h
31 #define _main_h
32
33 static char *SRCID_main_h = "$Id$";
34
35 #ifdef HAVE_CONFIG_H
36 #include <config.h>
37 #endif
38
39 #ifdef HAVE_IDENT
40 #ident  "@(#) main.h 1.3 11/23/92"
41 #endif /* HAVE_IDENT */
42
43 #include <stdio.h>
44 #include "network.h"
45
46 extern FILE *stdlog;
47 extern int  gmx_parallel; /* 1 when running in parallel */
48
49 extern char *par_fn(char *base,int ftp,t_commrec *cr);
50 /* Add processor id in the filename right before the extension */
51
52 extern void open_log(char *fn,t_commrec *cr);
53 /* Open the log file, if necessary (nprocs > 1) the logfile name is
54  * communicated around the ring.
55  */
56
57 extern t_commrec *init_par(int *argc,char ***argv_ptr);
58 /* Initiate the parallel computer. Return the communication record
59  * (see network.h). The command line arguments are communicated so that they can be
60  * parsed on each processor.
61  * Arguments are the number of command line arguments, and a pointer to the
62  * array of argument strings.
63  */
64
65 #endif  /* _main_h */