TABLE OF CONTENTS


::pwtk::pwi::ATOMIC_POSITIONS_fromPWO

SYNOPSIS

proc ::pwtk::pwi::ATOMIC_POSITIONS_fromPWO {pwoFile {index end}} {

PURPOSE

Load new ATOMIC_POSITIONS cards from pw.x output file.

ARGUMENTS

SOURCE

    ::pwtk::fileMustExist $pwoFile "pw.x output"
    set coor [::pwtk::pwo::getAtmPos -k $pwoFile $index]

    # perhaps the pwoFile is abnornal and contains no coordinates    
    if { $coor != "" } {
        ATOMIC_POSITIONS [lindex $coor 1] [::pwtk::purifyCoor $coor]
    } else {
        pwtk::warning "no coordinates found in pw.x output file: $pwoFile "
    }
    ::pwtk::pwi::setNAtoms
}