next up previous contents index
Next: Function atoms_neighbour Up: Module atoms_module Previous: Function atoms_cutoff_break   Contents   Index

Function atoms_n_neighbours


\begin{boxedminipage}{\textwidth}
\begin{verbatim}n = atoms_n_neighbours(this,i[,max_dist,max_factor, &
alt_connect])\end{verbatim}
\end{boxedminipage}

Return the number of neighbour that atom $i$ has. If the optional arguments max_dist or max_factor are present then only neighbours closer than this cutoff are included.

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

i -- integer, intent(in)

max_dist, max_factor -- real(dp), optional, intent(in)

alt_connect -- type(Connection), optional, intent(in), target

Return value -- integer

atoms_neighbour function

gabor 2009-06-30