Calculates the energy & its derivative due to a bond.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rp), | intent(in) | :: | rij_mag | Distance between bonded atoms |
||
integer, | intent(in) | :: | sty | Style of the bond |
||
real(kind=rp), | intent(in), | dimension(:) | :: | params | Parameters for bonded interaction |
|
real(kind=rp), | intent(out) | :: | enrg | Bond energy |
||
real(kind=rp), | intent(out) | :: | frc | Derivative of the potential. This is the magnitude of the force due to this potential. |
||
integer, | intent(out) | :: | ierr | Error flag |