TABLE OF CONTENTS


::pwtk::pwo::getPrimVecUnit

SYNOPSIS

proc ::pwtk::pwo::getPrimVecUnit {pwoFile {index end}} {

PURPOSE

Return the unit in which the CELL_PARAMETERS are specified in the pw.x output file.

ARGUMENTS

SOURCE

    lassign [split [string trim [getPrimVec -k $pwoFile $index]] \n] line
    set unit [::pwtk::trimCardFlag [lrange $line 1 end]]

    # beware that for alat, pw.x prints something like: (alat= value)    
    return [lindex [split $unit =] 0]
}