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.

RETURN VALUE

The value of the outdir_prefix.

SOURCE

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