TABLE OF CONTENTS
::pwtk::serial_prefix
SYNOPSIS
proc ::pwtk::serial_prefix {args} {
PURPOSE
Set or query the serial_prefix for the serial execution of programs. In serial mode programs are run as:
$serial_prefix program.x $serial_postfix
An example would be: VAR=value program.x
Another example where this options needs to be used is when using QE executables from the container. For example the following instructs PWTK how to run serial code from the singularity container:
serial_prefix "singularity exec /path/to/qe-6.7.simg"
where /path/to/qe-6.7.simg is the singularity container image.
USAGE
Set mode: ::pwtk::serial_prefix value Query mode: ::pwtk::serial_prefix
RETURN VALUE
The value of the serial_prefix.
SOURCE
variable RUNopt if { [llength $args] == 0 } { return [expr { [info exists RUNopt(SERIAL_PREFIX)] ? $RUNopt(SERIAL_PREFIX) : {} }] } elseif { [llength $args] == 1 } { eval set RUNopt(SERIAL_PREFIX) $args } else { set RUNopt(SERIAL_PREFIX) $args } return $RUNopt(SERIAL_PREFIX) }