TABLE OF CONTENTS


::pwtk::pwo::alat

SYNOPSIS

proc ::pwtk::pwo::alat {pwo {index end}} {

PURPOSE

Get the "alat" value (in bohr) from the pw.x output file.

ARGUMENTS

See ::pwtk::pwo::ibrav

SOURCE

    #return [::pwtk::grep_field {lattice parameter (alat)  =} $pwo end-1 $index]

    # N.B. it is more "precise" to grep for 'celldm(1)=' than 'lattice parameter (alat)  ='    
    return [::pwtk::grep_field {     celldm(1)=} $pwo 1 $index]
    
}