TABLE OF CONTENTS


::pwtk::input_handle

SYNOPSIS

proc ::pwtk::input_handle {{handle ""}} {

PURPOSE

Set or query the input-handle.

Input-handle determines how the input file is passed to Quantum-ESPRESSO executable(s). Usual mechanism for reading the input data is:

      program.x < input_file 

Hence in this case the input-handle is the input redirection operator "<". But some implementations of the MPI library have problems with the input redirection. If this happens, use the option -in (or -i, -inp, -input), followed by the input file name, e.g.:

       program.x -in input_file

In the first case above the input-handle is "<", while in the latter it is "-in".

WARNINGS

This routine allows to set the input handle to an arbitrary value, hence it is user responsibility to set the handle to an acceptable value.

ARGUMENTS

RETURN VALUE

The value of the input_handle.

SOURCE

    variable RUNopt

    if { $handle != "" } {
        set RUNopt(input_handle) $handle
    }
    return $RUNopt(input_handle)
}