move dftUGrad assignment into if statement

With this change the integration testing branch I'm working off of is fully consistent with the Fortran code, at least in the single variant case.

Merge request reports

Loading