TABLE OF CONTENTS
::pwtk::rerunCP
SYNOPSIS
proc ::pwtk::rerunCP {args} {
USAGE
rerunCP [options] input ?output?
DESCRIPTION
Re-run (restart) the cp.x calculation. Prior to running, this routine will set the restart_mode='restart' but only if restart_mode is undefined or 'from_scratch'. The output-file will be treated in append mode, whereas the rest is the same as for the ::pwtk::runCP routine.
OPTIONS
- -serial == run calculation in serial mode (default = parallel)
- -prefix == explicitly specify the prefix for parallel execution
- -postfix == explicitly specify the postfix for parallel execution
- -exec == explicitly specify the cp.x executable
- -ihandle <value> == explicitly set the input handle (for the description of input handle, see ::pwtk::input_handle)
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)
SOURCE
input_pushpop { set restart_mode [::pwtk::input::namelistGetVarValue CONTROL restart_mode trim] if { $restart_mode == "" || $restart_mode == "from_scratch" } { CONTROL { restart_mode = 'restart' } } # remove ignored options from $args set ignored_options { {outdir_clean "ignored option"} } array set opt [::cmdline::getKnownOptions args $ignored_options] if { $opt(outdir_clean) } { ::pwtk::warning "ignoring the -outdir_clean option, which disables the proper restart" } eval {runCP -append} $args } }