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
- -bg --- run calculation in background (synonymous with "&" as the last argument)
- -serial --- run 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)
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)
- & --- (optional) run calculation in background (synonymous with the -bg option)
SOURCE
# handle treatrun treat_run_ {*}$args input_pushpop { set restart_mode [::pwtk::input::namelistGetVarValue CONTROL restart_mode trim] if { $restart_mode == "" || $restart_mode == "from_scratch" } { CONTROL { restart_mode = 'restart' } } # take care of plugins restart plugins_restart_ cp.x #ENVIRON { # environ_restart = .true. #} # remove the outdir_clean option from $args as it prevents true restart remove_the_outdir_clean_option_ set result [eval {runCP -append} $args] } return $result }