TABLE OF CONTENTS


::pwtk::dryrunPW

SYNOPSIS

proc pwtk::dryrunPW {} {

USAGE

dryrunPW

DESCRIPTION

Make a fast pw.x dry-run (as to query the info).

RETURN VALUE

Name of the output file of the pw.x dry-run.

SOURCE

    set prog    [findExecutable pw.x]
    set head    pw.dry-run
    
    input_pushpop {
        CONTROL   { calculation = 'scf', prefix = 'pwscf' }
        ELECTRONS { electron_maxstep = 0 }
        ::pwtk::pwi::fprint $head.in
        
        catch {
            # do a simple serial run
            exec touch pwscf.EXIT
            eval exec [serial_prefix] $prog -in $head.in > $head.out
        }
    }
    return $head.out
}