Calculates the energy & its derivative due to a single interacting pair of atoms.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | rij_mag |
Distance between two atoms |
||
| real(kind=rp), | intent(in) | :: | qi |
Charge on atom i |
||
| real(kind=rp), | intent(in) | :: | qj |
Charge on atom j |
||
| integer, | intent(in) | :: | sty |
Style of vdw interaction |
||
| real(kind=rp), | intent(in), | dimension(:) | :: | params |
Parameters for vdw interaction |
|
| real(kind=rp), | intent(out) | :: | enrg |
Energy |
||
| real(kind=rp), | intent(out) | :: | frc |
Derivative of the potential. This is the magnitude of force due to this potential. |
||
| integer, | intent(out) | :: | ierr |
Error flag |