next up previous contents
Next: Function: read_cubic Up: GRASP Routines: Template Bank Previous: Function: generate_cubic   Contents


Function: regenerate_cubic

int regenerate_cubic(char *detectors_file, const char *infile,
                     const char *outfile, const char *logfile);
It may happen that the routine generate_cubic() terminates before completing the entire coefficient grid. Since each grid point takes so long to compute, it would be foolish to discard those already generated. This routine, therefore, reads in a partially-complete data file, and then continues the computation where generate_cubic() left off. The results are written to a new data file (leaving the original file incomplete). It returns 0 upon successful completion, or 1 if the data file was absent or corrupt. regenerate_cubic() also creates its own log file to track its progress.

The arguments are:

detectors_file: Input. The name of a data file containing detector site information, such as detectors.dat. This is used to get a noise file for computing the match function.

infile: Input. The name of the incomplete data file of coefficients.

outfile: Input. The name of the data file where this routine stores its results.

logfile: Input. The name of a log file which tracks the progress of this routine.

Author: Teviet Creighton, teviet@tapir.caltech.edu


next up previous contents
Next: Function: read_cubic Up: GRASP Routines: Template Bank Previous: Function: generate_cubic   Contents
Bruce Allen 2000-11-19