-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: update toWannier90 interface with
psi_initializer_nao
(#3…
…371) * produce wrong results, will debug * implement lcao_in_pw * debug compile error of unittest * ecutwfc 20 is not compatible with mpirun -np 4, dont know why * add unittest for newly-added lcao_in_pw specific HSolver::solve * correct index of psig when passing values * initialize bx by and bz of INPUT so that elimiate undefined behavior * correct psi_initializer, allocate appropriate memory for psi. Delete redundant code in psi_initializer_nao * - avoid initial scf converting psig to psi when lcao_in_pw, - add normalization of psig when init_wfc = nao - correct timer of diagH_subspace_init function * add MPI reduce and add unit test on nspin = 4 case * repair hsolverPW::solve * repair paw part of lcao_in_pw specific HSolverPW::solve * update towannier90 interface with psi_initializer * recover the LCAO macro * update unittest of input_test * correct unittest --------- Co-authored-by: Zhao Tianqi <hongriTianqi@users.noreply.github.com> Co-authored-by: dyzheng <zhengdy@dp.tech>
- Loading branch information
1 parent
23b809c
commit 8c9edbf
Showing
17 changed files
with
1,039 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
examples/interface_wannier90/ABACUS_towannier90_lcao_in_pw/INPUT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
INPUT_PARAMETERS | ||
|
||
pseudo_dir ../../../tests/PP_ORB | ||
orbital_dir ../../../tests/PP_ORB | ||
ntype 1 | ||
ecutwfc 50 | ||
nbands 12 | ||
calculation nscf | ||
scf_nmax 50 | ||
pw_diag_thr 1.0e-12 | ||
scf_thr 1.0e-15 | ||
init_chg file | ||
symmetry 0 | ||
towannier90 1 | ||
wannier_method 1 | ||
nnkpfile diamond.nnkp | ||
basis_type lcao | ||
|
18 changes: 18 additions & 0 deletions
18
examples/interface_wannier90/ABACUS_towannier90_lcao_in_pw/INPUT-nscf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
INPUT_PARAMETERS | ||
|
||
pseudo_dir ../../../tests/PP_ORB | ||
orbital_dir ../../../tests/PP_ORB | ||
ntype 1 | ||
ecutwfc 50 | ||
nbands 12 | ||
calculation nscf | ||
scf_nmax 50 | ||
pw_diag_thr 1.0e-12 | ||
scf_thr 1.0e-15 | ||
init_chg file | ||
symmetry 0 | ||
towannier90 1 | ||
wannier_method 1 | ||
nnkpfile diamond.nnkp | ||
basis_type lcao | ||
|
11 changes: 11 additions & 0 deletions
11
examples/interface_wannier90/ABACUS_towannier90_lcao_in_pw/INPUT-scf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
INPUT_PARAMETERS | ||
|
||
pseudo_dir ../../../tests/PP_ORB | ||
orbital_dir ../../../tests/PP_ORB | ||
ntype 1 | ||
ecutwfc 50 | ||
calculation scf | ||
scf_thr 1e-13 | ||
out_chg 1 | ||
basis_type lcao_in_pw | ||
ks_solver lapack |
67 changes: 67 additions & 0 deletions
67
examples/interface_wannier90/ABACUS_towannier90_lcao_in_pw/KPT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
K_POINTS | ||
64 | ||
Direct | ||
0.0000 0.0000 0.0000 0.0156250 | ||
0.0000 0.2500 0.0000 0.0156250 | ||
0.0000 0.5000 0.0000 0.0156250 | ||
0.0000 0.7500 0.0000 0.0156250 | ||
0.2500 0.0000 0.0000 0.0156250 | ||
0.2500 0.2500 0.0000 0.0156250 | ||
0.2500 0.5000 0.0000 0.0156250 | ||
0.2500 0.7500 0.0000 0.0156250 | ||
0.5000 0.0000 0.0000 0.0156250 | ||
0.5000 0.2500 0.0000 0.0156250 | ||
0.5000 0.5000 0.0000 0.0156250 | ||
0.5000 0.7500 0.0000 0.0156250 | ||
0.7500 0.0000 0.0000 0.0156250 | ||
0.7500 0.2500 0.0000 0.0156250 | ||
0.7500 0.5000 0.0000 0.0156250 | ||
0.7500 0.7500 0.0000 0.0156250 | ||
0.0000 0.0000 0.2500 0.0156250 | ||
0.0000 0.2500 0.2500 0.0156250 | ||
0.0000 0.5000 0.2500 0.0156250 | ||
0.0000 0.7500 0.2500 0.0156250 | ||
0.2500 0.0000 0.2500 0.0156250 | ||
0.2500 0.2500 0.2500 0.0156250 | ||
0.2500 0.5000 0.2500 0.0156250 | ||
0.2500 0.7500 0.2500 0.0156250 | ||
0.5000 0.0000 0.2500 0.0156250 | ||
0.5000 0.2500 0.2500 0.0156250 | ||
0.5000 0.5000 0.2500 0.0156250 | ||
0.5000 0.7500 0.2500 0.0156250 | ||
0.7500 0.0000 0.2500 0.0156250 | ||
0.7500 0.2500 0.2500 0.0156250 | ||
0.7500 0.5000 0.2500 0.0156250 | ||
0.7500 0.7500 0.2500 0.0156250 | ||
0.0000 0.0000 0.5000 0.0156250 | ||
0.0000 0.2500 0.5000 0.0156250 | ||
0.0000 0.5000 0.5000 0.0156250 | ||
0.0000 0.7500 0.5000 0.0156250 | ||
0.2500 0.0000 0.5000 0.0156250 | ||
0.2500 0.2500 0.5000 0.0156250 | ||
0.2500 0.5000 0.5000 0.0156250 | ||
0.2500 0.7500 0.5000 0.0156250 | ||
0.5000 0.0000 0.5000 0.0156250 | ||
0.5000 0.2500 0.5000 0.0156250 | ||
0.5000 0.5000 0.5000 0.0156250 | ||
0.5000 0.7500 0.5000 0.0156250 | ||
0.7500 0.0000 0.5000 0.0156250 | ||
0.7500 0.2500 0.5000 0.0156250 | ||
0.7500 0.5000 0.5000 0.0156250 | ||
0.7500 0.7500 0.5000 0.0156250 | ||
0.0000 0.0000 0.7500 0.0156250 | ||
0.0000 0.2500 0.7500 0.0156250 | ||
0.0000 0.5000 0.7500 0.0156250 | ||
0.0000 0.7500 0.7500 0.0156250 | ||
0.2500 0.0000 0.7500 0.0156250 | ||
0.2500 0.2500 0.7500 0.0156250 | ||
0.2500 0.5000 0.7500 0.0156250 | ||
0.2500 0.7500 0.7500 0.0156250 | ||
0.5000 0.0000 0.7500 0.0156250 | ||
0.5000 0.2500 0.7500 0.0156250 | ||
0.5000 0.5000 0.7500 0.0156250 | ||
0.5000 0.7500 0.7500 0.0156250 | ||
0.7500 0.0000 0.7500 0.0156250 | ||
0.7500 0.2500 0.7500 0.0156250 | ||
0.7500 0.5000 0.7500 0.0156250 | ||
0.7500 0.7500 0.7500 0.0156250 |
67 changes: 67 additions & 0 deletions
67
examples/interface_wannier90/ABACUS_towannier90_lcao_in_pw/KPT-nscf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
K_POINTS | ||
64 | ||
Direct | ||
0.0000 0.0000 0.0000 0.0156250 | ||
0.0000 0.2500 0.0000 0.0156250 | ||
0.0000 0.5000 0.0000 0.0156250 | ||
0.0000 0.7500 0.0000 0.0156250 | ||
0.2500 0.0000 0.0000 0.0156250 | ||
0.2500 0.2500 0.0000 0.0156250 | ||
0.2500 0.5000 0.0000 0.0156250 | ||
0.2500 0.7500 0.0000 0.0156250 | ||
0.5000 0.0000 0.0000 0.0156250 | ||
0.5000 0.2500 0.0000 0.0156250 | ||
0.5000 0.5000 0.0000 0.0156250 | ||
0.5000 0.7500 0.0000 0.0156250 | ||
0.7500 0.0000 0.0000 0.0156250 | ||
0.7500 0.2500 0.0000 0.0156250 | ||
0.7500 0.5000 0.0000 0.0156250 | ||
0.7500 0.7500 0.0000 0.0156250 | ||
0.0000 0.0000 0.2500 0.0156250 | ||
0.0000 0.2500 0.2500 0.0156250 | ||
0.0000 0.5000 0.2500 0.0156250 | ||
0.0000 0.7500 0.2500 0.0156250 | ||
0.2500 0.0000 0.2500 0.0156250 | ||
0.2500 0.2500 0.2500 0.0156250 | ||
0.2500 0.5000 0.2500 0.0156250 | ||
0.2500 0.7500 0.2500 0.0156250 | ||
0.5000 0.0000 0.2500 0.0156250 | ||
0.5000 0.2500 0.2500 0.0156250 | ||
0.5000 0.5000 0.2500 0.0156250 | ||
0.5000 0.7500 0.2500 0.0156250 | ||
0.7500 0.0000 0.2500 0.0156250 | ||
0.7500 0.2500 0.2500 0.0156250 | ||
0.7500 0.5000 0.2500 0.0156250 | ||
0.7500 0.7500 0.2500 0.0156250 | ||
0.0000 0.0000 0.5000 0.0156250 | ||
0.0000 0.2500 0.5000 0.0156250 | ||
0.0000 0.5000 0.5000 0.0156250 | ||
0.0000 0.7500 0.5000 0.0156250 | ||
0.2500 0.0000 0.5000 0.0156250 | ||
0.2500 0.2500 0.5000 0.0156250 | ||
0.2500 0.5000 0.5000 0.0156250 | ||
0.2500 0.7500 0.5000 0.0156250 | ||
0.5000 0.0000 0.5000 0.0156250 | ||
0.5000 0.2500 0.5000 0.0156250 | ||
0.5000 0.5000 0.5000 0.0156250 | ||
0.5000 0.7500 0.5000 0.0156250 | ||
0.7500 0.0000 0.5000 0.0156250 | ||
0.7500 0.2500 0.5000 0.0156250 | ||
0.7500 0.5000 0.5000 0.0156250 | ||
0.7500 0.7500 0.5000 0.0156250 | ||
0.0000 0.0000 0.7500 0.0156250 | ||
0.0000 0.2500 0.7500 0.0156250 | ||
0.0000 0.5000 0.7500 0.0156250 | ||
0.0000 0.7500 0.7500 0.0156250 | ||
0.2500 0.0000 0.7500 0.0156250 | ||
0.2500 0.2500 0.7500 0.0156250 | ||
0.2500 0.5000 0.7500 0.0156250 | ||
0.2500 0.7500 0.7500 0.0156250 | ||
0.5000 0.0000 0.7500 0.0156250 | ||
0.5000 0.2500 0.7500 0.0156250 | ||
0.5000 0.5000 0.7500 0.0156250 | ||
0.5000 0.7500 0.7500 0.0156250 | ||
0.7500 0.0000 0.7500 0.0156250 | ||
0.7500 0.2500 0.7500 0.0156250 | ||
0.7500 0.5000 0.7500 0.0156250 | ||
0.7500 0.7500 0.7500 0.0156250 |
4 changes: 4 additions & 0 deletions
4
examples/interface_wannier90/ABACUS_towannier90_lcao_in_pw/KPT-scf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
K_POINTS | ||
0 | ||
Gamma | ||
12 12 12 0 0 0 |
21 changes: 21 additions & 0 deletions
21
examples/interface_wannier90/ABACUS_towannier90_lcao_in_pw/STRU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ATOMIC_SPECIES | ||
C 12.000 C.LDA.UPF | ||
|
||
NUMERICAL_ORBITAL | ||
C_lda_8.0au_100Ry_2s2p1d.orb | ||
|
||
LATTICE_CONSTANT | ||
6.1 | ||
|
||
LATTICE_VECTORS | ||
-0.5 0.0 0.5 | ||
0.0 0.5 0.5 | ||
-0.5 0.5 0.0 | ||
|
||
ATOMIC_POSITIONS | ||
Direct | ||
C | ||
0.0 | ||
2 | ||
0.875 0.875 0.875 0 0 0 | ||
0.125 0.125 0.125 0 0 0 |
Oops, something went wrong.