TABLE OF CONTENTS


::pwtk::dryrunNEB

SYNOPSIS

proc pwtk::dryrunNEB {} {

USAGE

   dryrunNEB

DESCRIPTION

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

RETURN VALUE

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

SOURCE

    set prog    [findExecutable neb.x]
    set head    [fileutil::tempfile neb.dry-run.]; # make a unique filenames because several jobs may be running
    
    input_pushpop {
        PATH      { nstep_path = 0 }
        CONTROL   { calculation = 'scf', prefix = 'pwscf' }
        ELECTRONS { electron_maxstep = 0 }
        ::pwtk::nebi::fprint $head.in

        download_needed_PPs_ ::pwtk::nebi
        
        catch {
            # do a simple serial run
            close [open pwscf.EXIT w]
            eval exec [serial_prefix] $prog -in $head.in > $head.out
        }
        file delete pwscf.EXIT; # just in case
    }
    return $head.out
}