next up previous contents index
Next: Subroutine set_bonds Up: Module atoms_module Previous: Subroutine connection_fill   Contents   Index

Subroutine test_form_bond


\begin{boxedminipage}{\textwidth}
\begin{verbatim}call test_form_bond(this,c...
...&
pos,lattice,i,j, &
shift[,check_for_dup])\end{verbatim}
\end{boxedminipage}

Test if atom $i$ is a neighbour of atom $j$ and update this%connect as necessary. Called by calc_connect. The shift vector is added to the position of the $j$ atom to get the correct image position.

this -- type(Connection), intent(inout)

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

use_uniform_cutoff -- logical, intent(in)

Z -- integer, intent(in), dimension(:)

pos -- real(dp), intent(in), dimension(:,:)

lattice -- real(dp), intent(in), dimension(3,3)

i, j -- integer, intent(in)

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

check_for_dup -- logical, intent(in), optional

set_bonds subroutine

gabor 2009-06-30