mirror of https://gitlab.com/QEF/q-e.git
correct saving of starting_kpoints
when k_points is not initialized in input starting_kpoints must be initialized checking the number of starting k points and the value of nk1 nk2 and nk3.
This commit is contained in:
parent
31603626cc
commit
a7e6eda9e2
|
@ -348,9 +348,14 @@ MODULE pw_restart_new
|
|||
ELSE
|
||||
occupations_are_fixed = .FALSE.
|
||||
h_energy = ef
|
||||
END IF
|
||||
CALL qexsd_init_k_points_ibz(qexsd_start_k_obj, k_points, calculation, nk1, nk2, nk3, k1, k2, k3,&
|
||||
nks_start, xk_start, wk_start, alat, at(:,1), .TRUE.)
|
||||
END IF
|
||||
IF (nks_start == 0 .AND. nk1*nk2*nk3 > 0 ) THEN
|
||||
CALL qexsd_init_k_points_ibz(qexsd_start_k_obj, "automatic", calculation, &
|
||||
nk1, nk2, nk3, k1, k2, k3, nks_start, xk_start, wk_start, alat, at(:,1), .TRUE.)
|
||||
ELSE
|
||||
CALL qexsd_init_k_points_ibz(qexsd_start_k_obj, k_points, calculation, &
|
||||
nk1, nk2, nk3, k1, k2, k3, nks_start, xk_start, wk_start, alat, at(:,1), .TRUE.)
|
||||
END IF
|
||||
qexsd_start_k_obj%tagname = 'starting_kpoints'
|
||||
IF ( TRIM (qexsd_input_obj%tagname) == 'input') THEN
|
||||
qexsd_occ_obj = qexsd_input_obj%bands%occupations
|
||||
|
@ -1726,7 +1731,7 @@ MODULE pw_restart_new
|
|||
USE lsda_mod, ONLY : lsda, isk
|
||||
USE klist, ONLY : nkstot, xk, wk
|
||||
USE start_k, ONLY : nks_start, xk_start, wk_start, &
|
||||
nk1, nk2, nk3, k1, k2, k3
|
||||
nk1, nk2, nk3, k1, k2, k3
|
||||
USE symm_base,ONLY : nrot, s, sname
|
||||
USE qes_types_module, ONLY : k_points_IBZ_type, occupations_type, symmetries_type, band_structure_type
|
||||
!
|
||||
|
|
Loading…
Reference in New Issue