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, e.g.:

     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 PWO output file unless index==0 or index==end (in this case, the initial lattice-vectors are returned; for index==end, the initial lattice-vectors are returned if CELL_PARAMETERS records are missing in the output).

ARGUMENTS

SOURCE

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