next up previous contents index
Next: Function cosine Up: Module atoms_module Previous: Function realpos   Contents   Index

Function distance


\begin{boxedminipage}{\textwidth}
\begin{verbatim}d = distance(this,i,j,shift)\end{verbatim}
\end{boxedminipage}

Return distance between atoms $i$ and $j$ if they are separated by a shift of shift.

this -- type(Atoms), intent(in)

i, j -- integer, intent(in)

shift -- integer, intent(in), dimension(3)

Return value -- real(dp)

cosine function

gabor 2009-06-30