next up previous contents index
Next: Interface distance_min_image Up: Module atoms_module Previous: Interface remove_property   Contents   Index

Interface assign_pointer


\begin{boxedminipage}{\textwidth}
\begin{verbatim}a1 = assign_pointer(this,name,ptr)\end{verbatim}
\end{boxedminipage}

This is a convenience interface to assign pointers to custom properties of this Atoms object. The pointer is simply directed to the relevant columns of the this%data table. Adding new properties will invalidate these pointers because the data table gets moved in memory whenever a new column is added, so this interface should be recalled whenever properties are added. Returns true if successful, false if property doesn't exist, and aborts if property type and type of pointer don't match.

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

name -- character(len=*), intent(in)

ptr -- pointer, dimension(:) or dimension(:,:),

integer or real(dp) or character(TABLE_STRING_LENGTH) or logical

Return value -- logical
distance_min_image interface

gabor 2009-06-30