Calculates the energy due to a dihedral.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in), | dimension(3) | :: | ri | ||
| real(kind=rp), | intent(in), | dimension(3) | :: | rj | ||
| real(kind=rp), | intent(in), | dimension(3) | :: | rk | ||
| real(kind=rp), | intent(in), | dimension(3) | :: | rl | ||
| type(ia_specs_t), | intent(in) | :: | specs | |||
| real(kind=rp), | intent(out) | :: | enrg |