@brief Compute grid XC contribution to the nuclear gradient
Note
Weight derivatives are not applied here. The gradient seems to be good enough even using fairly poor grids. However, I do not recomment to use it for numerical Hessian calculation until weight derivatives are implemented @param[in] da density matrix, alpha-spin @param[in] db density matrix, beta-spin @param[inout] dedft nuclear gradient @param[out] totele electronic denisty integral @param[out] totkin kinetic energy integral @param[in] mxAngMom max. needed ang. mom. value (incl. derivatives) @param[in] nbf basis set size @param[in] isGGA .TRUE. if GGA/mGGA functional used @param[in] urohf .TRUE. if open-shell calculation @author Vladimir Mironov
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(basis_set) | :: | basis | ||||
| type(dft_grid_t), | intent(in), | target | :: | molGrid | ||
| real(kind=fp), | intent(inout) | :: | da(nbf,*) | |||
| real(kind=fp), | intent(inout) | :: | db(nbf,*) | |||
| real(kind=fp), | intent(inout) | :: | dedft(:,:) | |||
| real(kind=fp), | intent(inout) | :: | totele | |||
| real(kind=fp), | intent(inout) | :: | totkin | |||
| integer, | intent(in) | :: | mxAngMom | |||
| integer, | intent(in) | :: | nbf | |||
| real(kind=fp), | intent(in) | :: | dft_threshold | |||
| logical, | intent(in) | :: | urohf | |||
| type(information), | intent(in), | target | :: | infos |