TABLE OF CONTENTS


::pwtk::runXX

SYNOPSIS

proc ::pwtk::runXX {prog args} {

USAGE

   runXX PROG ?OPTIONS?  INPUT  ?OUTPUT?  ?&?

PURPOSE

A general runCmd routine that associates the PROG QE executable with the corresponding specific 'runCmd' command. For example:

      runXX pw.x ?OPTIONS? INPUT ?OUTPUT?  ?&?

is equivalent to:

      runPW ?OPTIONS? INPUT ?OUTPUT?  ?&?

OPTIONS

ARUMENTS * PROG --- name of the QE program (e.g. pw.x, ph.x, pp.x, ...) * INPUT --- either name of the input file or the headname (i.e. rootname

              of the input name without the file extension)

* OUTPUT --- (optional) name of the output file * & --- (optional) run calculation in background (synonymous with the -bg option)

SOURCE

    variable prog2runCmd; # array that maps from prog to runCmd

    # runCmd == $prog2runCmd($prog)
    ifnotexist prog2runCmd($prog) {
        ::pwtk::error "cannot map '$prog' to runCmd because the '$prog' executable has no registered runCmd" 1
    }
    return [$prog2runCmd($prog) {*}$args]
}