TABLE OF CONTENTS


::pwtk::outdir_prefix

SYNOPSIS

proc ::pwtk::outdir_prefix {{prefix {}}} {

PURPOSE

Set (or query) the outdir's root (top) directory, e.g., /scratch/$env(USER)/pwscf. This routine is typically used in configuration file, ~/.pwtk/pwtk.tcl. The full outdir is then constructed by subsequent call to ::pwtk::outdir_postfix, and the outdir is: $outdir_prefix/$outdir_postfix.

IMPORTANT

To make ::pwtk::outdir_prefix effective, ::pwtk::outdir_postfix must be called in set mode after ::pwtk::outdir_prefix

RETURN VALUE

The value of the outdir_prefix.

SOURCE

    variable QEdir
    if { $prefix == "" } {
        return [varvalue QEdir(outdirPrefix)]
    }
        
    return [set QEdir(outdirPrefix) $prefix]
}