[Q-e-commits] r8268 - trunk/espresso/PW

dalcorso at sissa.it dalcorso at sissa.it
Tue Nov 22 11:05:00 CET 2011


Author: dalcorso
Date: 2011-11-22 11:05:00 +0100 (Tue, 22 Nov 2011)
New Revision: 8268

Modified:
   trunk/espresso/PW/hinit1.f90
Log:
Problem fix: PAW + vc-relax often crashes. This improves the situation but
it is not the final solution.


Modified: trunk/espresso/PW/hinit1.f90
===================================================================
--- trunk/espresso/PW/hinit1.f90	2011-11-22 10:03:05 UTC (rev 8267)
+++ trunk/espresso/PW/hinit1.f90	2011-11-22 10:05:00 UTC (rev 8268)
@@ -23,6 +23,11 @@
   USE realus,        ONLY : qpointlist
   USE wannier_new,   ONLY : use_wannier
   USE martyna_tuckerman, ONLY : tag_wg_corr_as_obsolete
+  USE scf,           ONLY : rho
+  USE paw_variables, ONLY : okpaw, ddd_paw
+  USE paw_onecenter, ONLY : paw_potential
+  USE paw_init,      ONLY : paw_atomic_becsum
+  USE paw_symmetry,  ONLY : paw_symmetrize_ddd
   USE dfunct,        ONLY : newd
   !
   IMPLICIT NONE
@@ -43,10 +48,17 @@
   !
   IF ( tqr ) CALL qpointlist()
   !
-  ! ... update the D matrix
+  ! ... update the D matrix and the PAW coefficients
   !
   CALL newd()
   !
+  IF (okpaw) THEN
+     CALL paw_atomic_becsum()
+!     CALL compute_becsum(.true.)
+     CALL PAW_potential(rho%bec, ddd_paw)
+     CALL PAW_symmetrize_ddd(ddd_paw)
+  ENDIF
+  !
   ! ... and recalculate the products of the S with the atomic wfcs used 
   ! ... in LDA+U calculations
   !



More information about the Q-e-commits mailing list