batchify the divergence calculation for mgga
Description
- Convert divergence calculation to batch which is used in MGGA calculations.
- De-allocate the vgradb batch at the end of
subroutine X(h_mgga_terms)
Tests
This implementation is tested by
- testsuite/functionals/18-mgga.test
- testsuite/periodic_systems/07-mgga.test
Edited by Meisam Tabriz