Skip to content

Commit

Permalink
hubbard occupancies are calculated during density summation
Browse files Browse the repository at this point in the history
  • Loading branch information
toxa81 committed Nov 1, 2020
1 parent 6bd5185 commit a41cb3e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions PW/src/new_ns.f90
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ SUBROUTINE new_ns( ns )
nr(:,:,:,:) = 0.d0
IF (use_sirius) THEN
ALLOCATE(nrc(ldmx,ldmx,nspin,nat))
CALL sirius_calculate_hubbard_occupancies(gs_handler)
CALL sirius_get_hubbard_occupancies(gs_handler, nrc(1,1,1,1), ldmx)
CALL sirius_to_qe_real(nrc(:, :, :, :), nr(:, :, :, :))
DEALLOCATE(nrc)
Expand Down Expand Up @@ -357,7 +356,6 @@ SUBROUTINE new_ns_nc( ns )
ns(:,:,:,:) = 0.d0
IF (use_sirius) THEN
ALLOCATE(nss(2 * Hubbard_lmax + 1, 2 * Hubbard_lmax + 1, 4, nat))
CALL sirius_calculate_hubbard_occupancies(gs_handler)
CALL sirius_get_hubbard_occupancies(gs_handler, nss(1, 1, 1, 1), ldim)
CALL sirius_to_qe_complex(nss(:, :, :, :), ns(:, :, :, :))
DO na = 1, nat
Expand Down

0 comments on commit a41cb3e

Please sign in to comment.