Skip to content

Commit

Permalink
Fix GAPW TDDFPT (MattW)
Browse files Browse the repository at this point in the history
  • Loading branch information
schulkov committed Dec 17, 2019
1 parent 3ed042a commit 789b032
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/qs_p_env_methods.F
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,12 @@ SUBROUTINE p_op_l2(p_env, qs_env, p1, res, alpha, beta)
CALL dbcsr_copy(rho1_ao(ispin)%matrix, p1(ispin)%matrix)
ENDIF
ENDDO
CALL qs_rho_update_rho(rho_struct=p_env%rho1, qs_env=qs_env)

IF (ASSOCIATED(p_env%local_rho_set)) THEN
CALL qs_rho_update_rho(rho_struct=p_env%rho1, qs_env=qs_env, local_rho_set=p_env%local_rho_set)
ELSE
CALL qs_rho_update_rho(rho_struct=p_env%rho1, qs_env=qs_env)
END IF

IF (fdiff) THEN
CALL kpp1_calc_k_p_p1_fdiff(qs_env=qs_env, &
Expand Down

0 comments on commit 789b032

Please sign in to comment.