next up previous contents index
Next: Subroutine df3_dr Up: Module IPModel_SW_module Previous: Interface Print   Contents   Index

Interface Calc


\begin{boxedminipage}{\textwidth}
\begin{verbatim}call Calc(this,at[,e,local_e, &
f,virial])\end{verbatim}
\end{boxedminipage}

The potential calculator. It computes energy, forces and virial.

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

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

e -- real(dp), intent(out), optional

e = System total energy, local_e = energy of each atom, vector dimensioned as at%N.

local_e -- real(dp), intent(out), optional, dimension(:)

e = System total energy, local_e = energy of each atom, vector dimensioned as at%N.

f -- real(dp), intent(out), optional, dimension(:,:)

Forces, dimensioned as f(3,at%N)

virial -- real(dp), intent(out), optional, dimension(3,3)

Virial

df3_dr subroutine

gabor 2009-06-30