TABLE OF CONTENTS


::pwtk::rerunPW

SYNOPSIS

proc ::pwtk::rerunPW {args} {

USAGE

   rerunPW ?OPTIONS?  INPUT  ?OUTPUT?  ?&?    

DESCRIPTION

Re-run (restart) the pw.x calculation. Prior to running, this routine will set the restart_mode='restart'. The output-file will be treated in append mode, whereas the rest is the same as for the ::pwtk::runPW routine.

OPTIONS

ARGUMENTS

SOURCE

    # handle treatrun
    treat_run_ {*}$args

    input_pushpop {
        CONTROL { 
            restart_mode = 'restart' 
        }

        # take care of plugins restart
        plugins_restart_ pw.x

        #ENVIRON {
        #    environ_restart = .true.
        #}
        
        # remove the outdir_clean option from $args as it prevents the true restart
        remove_the_outdir_clean_option_
        
        set result [eval {runPW -append} $args]
    }
    return $result
}