Skip to content

Commit

Permalink
missed ga_destroy for 2d DM
Browse files Browse the repository at this point in the history
  • Loading branch information
edoapra committed Aug 2, 2023
1 parent 7bf4517 commit ccf6a5a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/nwdft/lr_tddft_grad/tddft_grad_compute_g.F
Original file line number Diff line number Diff line change
Expand Up @@ -1391,6 +1391,13 @@ subroutine tddft_grad_compute_g(rtdb,ihdl_geom,ihdl_bfao,tda,nat,
if (.not.ga_destroy(g_rhs_xc(1)))
+ call errquit(pname//"could not destroy g_rhs_xc",0,GA_ERR)
c
if (xc_gotxc().and.(.not.dm3d)) then
do ip = 1, 2*ipol
if (.not.ga_destroy(g_dtmp(ip)))
1 call errquit(pname//"could not destroy g_dtmp_ao", 0,
2 GA_ERR)
enddo
endif
c
do ip = 1, ipol
if (.not.ga_destroy(g_d(0+ip)))
Expand Down

0 comments on commit ccf6a5a

Please sign in to comment.