TABLE OF CONTENTS


::pwtk::pwo::getAtmPos

SYNOPSIS

proc ::pwtk::pwo::getAtmPos {args} {

USAGE

   ::pwtk::pwo::getAtmPos ?-k? pwoFile ?index?

PURPOSE

Get the index-th ATOMIC_POSITIONS card from pw.x the output file.

RETURN VALUE

If -k option is specified then it returns atomic positions with keyword line:

     ATOMIC_POSITIONS (unit)
        AtmPos1   x1 y1 z1   [if_pos(1) if_pos(2) if_pos(3)]
        AtmPos2   x2 y2 z2   [if_pos(1) if_pos(2) if_pos(3)]
        AtmPos3   x3 y3 z3   [if_pos(1) if_pos(2) if_pos(3)]
        ....    

otherwise it returns:

        AtmPos1   x1 y1 z1   [if_pos(1) if_pos(2) if_pos(3)]
        AtmPos2   x2 y2 z2   [if_pos(1) if_pos(2) if_pos(3)]
        AtmPos3   x3 y3 z3   [if_pos(1) if_pos(2) if_pos(3)]
        ....    

ARGUMENTS

SOURCE

    return [eval ::pwtk::pwo::getStructData positions $args]
}