TABLE OF CONTENTS
::pwtk::runCP
SYNOPSIS
proc ::pwtk::runCP {args} {
USAGE
runCP ?OPTIONS? INPUT ?OUTPUT? ?&? Options are: -bg -append -serial -prefix PREFIX -postfix POSTFIX -exec EXECUTABLE -ihandle VALUE -outdir_clean
DESCRIPTION
Run the cp.x calculation. Prior to running calculation, this routine will:
* construct the cp.x input file from the specified input data * create the outdir directory if it does not yet exist
See the ::pwtk::findExecutable for how the cp.x executable is located.
OPTIONS
- -bg --- run calculation in background (synonymous with "&" as the last argument)
- -append --- treat the output file in append mode (default = overwrite)
- -serial --- run the calculation in serial mode (default = parallel)
- -prefix PREFIX --- explicitly specify the prefix for parallel execution
- -postfix POSTFIX --- explicitly specify the postfix for parallel execution
- -exec EXECUTABLE --- explicitly specify the cp.x executable
- -ihandle VALUE --- explicitly set the input handle (for the description of input handle, see ::pwtk::input_handle)
- -outdir_clean --- clean the outdir prior to running calculations
ARGUMENTS
- INPUT --- filename (or headname) to which the cp.x input file will be stored. The .in (.out) suffix will be added to headname for input (output) filename.
- OUTPUT --- (optional) filename to which the cp.x output will be stored
- & --- (optional) run calculation in background (synonymous with the -bg option)
SOURCE
# handle treatrun treat_run_ {*}$args # clean outdir if requested run_outdir_clean_ # create the outdir & wfcdir outdir_create wfcdir_create # run the calculation return [eval {makeInputAndRun_ ::pwtk::cpi cp.x} $args] }