next up previous contents index
Next: Function centre_of_mass Up: Module atoms_module Previous: Function max_cutoff   Contents   Index

Function make_lattice


\begin{boxedminipage}{\textwidth}
\begin{verbatim}lattice = make_lattice(a[,b,c,alpha, &
beta,gamma])\end{verbatim}
\end{boxedminipage}

Make a matrix of lattice vectors from the lengths a,b,c and the angles alpha, beta and gamma. One length must be supplied. Any missing angle is assumed to be 90 degrees and any missing length is assumed to be a. The vectors are created in a right-handed order.

a -- real(dp), intent(in)

b, c -- real(dp), optional, intent(in)

alpha, beta, gamma -- real(dp), optional, intent(in)

Return value -- real(dp), dimension(3,3)

centre_of_mass function

gabor 2009-06-30