#include #include #include #define NUMNODES 8 #define NUMWALLS 10 int intcomp(const void *ina, const void *inb) { int *a, *b; a = (int *)ina; b = (int *)inb; if (*a < *b) { return(-1); } else if (*a > *b) { return(1); } return(0); } main() { int nodes[8] = {1, 2, 4, 8, 16, 32, 64, 96}; int walltimes[10] = {30, 300, 600, 1800, 3600, 7200, 14400, 28800, 43200, 86400}; int i, j, k, rnprod, numres, rc, r, numrnprods, *rnprods, prevrnprod; double p, retp; bqp_res *theres; char *mach, *queue; FILE *MFH, *DFH; numrnprods = NUMNODES * NUMWALLS; rnprods = malloc(sizeof(int) * numrnprods); k=0; for (i=0; i