initial commit
[jalview.git] / forester / archive / RIO / others / puzzle_mod / src / sched.h
1 /*
2  * sched.h
3  *
4  *
5  * Part of TREE-PUZZLE 5.0 (June 2000)
6  *
7  * (c) 1999-2000 by Heiko A. Schmidt, Korbinian Strimmer,
8  *                  M. Vingron, and Arndt von Haeseler
9  * (c) 1995-1999 by Korbinian Strimmer and Arndt von Haeseler
10  *
11  * All parts of the source except where indicated are distributed under
12  * the GNU public licence.  See http://www.opensource.org for details.
13  */
14
15
16 #ifndef SCHED_H
17 #define SCHED_H
18 #ifndef SCHEDTEST
19 #   include "util.h" 
20 #else
21     typedef unsigned long int uli; 
22 #endif
23
24
25 typedef struct sched_t{
26    uli    truetasks;
27    uli    alltasks;
28    uli    numtasks;
29    uli    minchunk;
30    int    numprocs;
31    int    delta;
32    double ddelta;
33    int    overhead;
34    int    rest;
35    int    nconst;
36    double fconst;
37    double lconst;
38    double kconst;
39    int    inited;
40 } schedtype;
41
42 void num2quart(uli qnum, int *a, int *b, int *c, int *d);
43 uli numquarts(int maxspc);
44 uli quart2num (int a, int b, int c, int d);
45
46 void printsched(schedtype sch);
47 void initsched(schedtype *sch, uli tasks, int procs, uli minchunk);
48 uli sc(schedtype *sch);
49 uli gss(schedtype *sch);
50 uli sgss(schedtype *sch);
51 uli tss(schedtype *sch);
52
53 #endif /* SCHED_H */