The contribution of the magnetization is not calculated when domag is false.

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5962 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
dalcorso 2009-09-22 08:11:47 +00:00
parent ec1125455a
commit b46490c368
1 changed files with 15 additions and 11 deletions

View File

@ -402,6 +402,7 @@ CONTAINS
USE constants, ONLY : e2, tpi, fpi
USE cell_base, ONLY : omega, tpiba2
USE gvect, ONLY : gg, gstart
USE spin_orb, ONLY : domag
USE control_flags, ONLY : gamma_only
USE paw_onecenter, ONLY : paw_ddot
USE mp_global, ONLY : intra_pool_comm
@ -486,6 +487,7 @@ CONTAINS
!
IF ( gamma_only ) rho_ddot = 2.D0 * rho_ddot
!
IF (domag) THEN
fac = e2*fpi / (tpi**2) ! lambda=1 a.u.
!
IF ( gstart == 2 ) THEN
@ -510,6 +512,8 @@ CONTAINS
!
END IF
!
END IF
!
rho_ddot = rho_ddot * omega * 0.5D0
!
CALL mp_sum( rho_ddot , intra_pool_comm )