TABLE OF CONTENTS


::pwtk::pwo::getPrimVec

SYNOPSIS

proc ::pwtk::pwo::getPrimVec {args} {

USAGE

::pwtk::pwo::getPrimVec [-k] pwoFile [index]

DESCRIPTION

Get the index-th primitive vectors (CELL_PARAMETERS card) from the pw.x output file.

RETURN VALUE

If -k option is specified then it returns primitive vectors with keyword line:

     CELL_PARAMETERS (alat)
        ax ay az
        bx by bz
        cx cy cz

otherwise it returns:

        ax ay az
        bx by bz
        cx cy cz

BEWARE: CELL_PARAMETERS card is returned only if the card is found in the output, or if index==0 (in this latter case the initial lattice-vectors are returned).

ARGUMENTS

SOURCE

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