From 4aab65aec9bf9faa04af75f5057b9795df498d53 Mon Sep 17 00:00:00 2001 From: dyzheng Date: Mon, 25 May 2026 10:39:54 +0800 Subject: [PATCH 1/2] feat(tests): add tests/17_DS_DFTU test suite for DFT+U with deep potential spin constraints --- tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/INPUT | 23 ++ tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/KPT | 4 + tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/STRU | 21 ++ tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/result.ref | 3 + tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/INPUT | 20 ++ tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/KPT | 4 + tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/STRU | 21 ++ .../17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/result.ref | 3 + tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/INPUT | 28 +++ tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/KPT | 4 + tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/STRU | 21 ++ tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/result.ref | 3 + tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/INPUT | 28 +++ tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/KPT | 4 + tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/STRU | 21 ++ .../17_DS_DFTU/04_LCAO_DFTU_S4_XY/result.ref | 3 + tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/INPUT | 27 +++ tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/KPT | 4 + tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/STRU | 21 ++ .../17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/result.ref | 3 + tests/17_DS_DFTU/06_PW_SPIN_S2_Z/INPUT | 20 ++ tests/17_DS_DFTU/06_PW_SPIN_S2_Z/KPT | 4 + tests/17_DS_DFTU/06_PW_SPIN_S2_Z/STRU | 18 ++ tests/17_DS_DFTU/06_PW_SPIN_S2_Z/result.ref | 3 + tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/INPUT | 21 ++ tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/KPT | 4 + tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/STRU | 18 ++ tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/result.ref | 3 + tests/17_DS_DFTU/08_PW_DFTU_S2_Z/INPUT | 29 +++ tests/17_DS_DFTU/08_PW_DFTU_S2_Z/KPT | 4 + tests/17_DS_DFTU/08_PW_DFTU_S2_Z/STRU | 21 ++ tests/17_DS_DFTU/08_PW_DFTU_S2_Z/result.ref | 3 + tests/17_DS_DFTU/09_PW_DFTU_S4_XY/INPUT | 29 +++ tests/17_DS_DFTU/09_PW_DFTU_S4_XY/KPT | 4 + tests/17_DS_DFTU/09_PW_DFTU_S4_XY/STRU | 21 ++ tests/17_DS_DFTU/09_PW_DFTU_S4_XY/result.ref | 3 + tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/INPUT | 29 +++ tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/KPT | 4 + tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/STRU | 21 ++ tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/result.ref | 3 + tests/17_DS_DFTU/12_PW_DS_S2_Z/INPUT | 31 +++ tests/17_DS_DFTU/12_PW_DS_S2_Z/KPT | 4 + tests/17_DS_DFTU/12_PW_DS_S2_Z/STRU | 21 ++ tests/17_DS_DFTU/12_PW_DS_S2_Z/result.ref | 3 + tests/17_DS_DFTU/14_PW_DS_S4_XYZ/INPUT | 31 +++ tests/17_DS_DFTU/14_PW_DS_S4_XYZ/KPT | 4 + tests/17_DS_DFTU/14_PW_DS_S4_XYZ/STRU | 21 ++ tests/17_DS_DFTU/14_PW_DS_S4_XYZ/result.ref | 3 + tests/17_DS_DFTU/15_PW_DS_S4_Z/INPUT | 31 +++ tests/17_DS_DFTU/15_PW_DS_S4_Z/KPT | 4 + tests/17_DS_DFTU/15_PW_DS_S4_Z/STRU | 21 ++ tests/17_DS_DFTU/15_PW_DS_S4_Z/result.ref | 3 + tests/17_DS_DFTU/16_PW_DS_S4_XY/INPUT | 31 +++ tests/17_DS_DFTU/16_PW_DS_S4_XY/KPT | 4 + tests/17_DS_DFTU/16_PW_DS_S4_XY/STRU | 21 ++ tests/17_DS_DFTU/16_PW_DS_S4_XY/result.ref | 3 + tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/INPUT | 39 ++++ tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/KPT | 4 + tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/STRU | 21 ++ .../17_DS_DFTU/18_PW_DFTU_DS_S2_Z/result.ref | 3 + tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/INPUT | 39 ++++ tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/KPT | 4 + tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/STRU | 21 ++ .../17_DS_DFTU/19_PW_DFTU_DS_S4_XY/result.ref | 3 + tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/INPUT | 38 ++++ tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/KPT | 4 + tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/STRU | 21 ++ .../17_DS_DFTU/21_PW_DFTU_DS_S4_Z/result.ref | 3 + tests/17_DS_DFTU/24_LCAO_DS_S2_Z/INPUT | 33 +++ tests/17_DS_DFTU/24_LCAO_DS_S2_Z/KPT | 4 + tests/17_DS_DFTU/24_LCAO_DS_S2_Z/STRU | 21 ++ tests/17_DS_DFTU/24_LCAO_DS_S2_Z/result.ref | 3 + tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/INPUT | 32 +++ tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/KPT | 4 + tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/STRU | 21 ++ tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/result.ref | 3 + tests/17_DS_DFTU/27_LCAO_DS_S4_Z/INPUT | 30 +++ tests/17_DS_DFTU/27_LCAO_DS_S4_Z/KPT | 4 + tests/17_DS_DFTU/27_LCAO_DS_S4_Z/STRU | 21 ++ tests/17_DS_DFTU/27_LCAO_DS_S4_Z/result.ref | 3 + tests/17_DS_DFTU/28_LCAO_DS_S4_XY/INPUT | 30 +++ tests/17_DS_DFTU/28_LCAO_DS_S4_XY/KPT | 4 + tests/17_DS_DFTU/28_LCAO_DS_S4_XY/STRU | 21 ++ tests/17_DS_DFTU/28_LCAO_DS_S4_XY/result.ref | 3 + tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/INPUT | 36 ++++ tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/KPT | 4 + tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/STRU | 21 ++ .../30_LCAO_DFTU_DS_S2_Z/result.ref | 3 + tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/INPUT | 36 ++++ tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/KPT | 4 + tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/STRU | 21 ++ .../31_LCAO_DFTU_DS_S4_XY/result.ref | 3 + tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/INPUT | 36 ++++ tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/KPT | 4 + tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/STRU | 21 ++ .../32_LCAO_DFTU_DS_S4_XYZ/result.ref | 3 + tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/INPUT | 35 +++ tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/KPT | 4 + tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/STRU | 21 ++ .../33_LCAO_DFTU_DS_S4_Z/result.ref | 3 + tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/INPUT | 33 +++ tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/KPT | 4 + tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/STRU | 21 ++ .../36_PW_DS_S2_ReadLam_Z/result.ref | 3 + tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/INPUT | 32 +++ tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/KPT | 4 + tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/STRU | 21 ++ .../37_PW_DS_S4_ReadLam_XY/result.ref | 3 + tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/INPUT | 33 +++ tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/KPT | 4 + tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/STRU | 21 ++ .../38_PW_DS_S2_Thr1e10_Z/result.ref | 3 + tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/INPUT | 32 +++ tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/KPT | 4 + tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/STRU | 21 ++ .../39_PW_DS_S4_Thr1e10_XY/result.ref | 3 + tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/INPUT | 34 +++ tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/KPT | 4 + tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/STRU | 21 ++ .../17_DS_DFTU/40_PW_DS_S2_Thr10_Z/result.ref | 4 + tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/INPUT | 32 +++ tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/KPT | 4 + tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/STRU | 21 ++ .../41_PW_DS_S4_Thr10_XY/result.ref | 3 + .../42_PW_DFTU_DS_S2_Thr1e10_Z/INPUT | 39 ++++ .../17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/KPT | 4 + .../42_PW_DFTU_DS_S2_Thr1e10_Z/STRU | 21 ++ .../42_PW_DFTU_DS_S2_Thr1e10_Z/result.ref | 3 + .../43_PW_DFTU_DS_S4_Thr1e10_XY/INPUT | 38 ++++ .../43_PW_DFTU_DS_S4_Thr1e10_XY/KPT | 4 + .../43_PW_DFTU_DS_S4_Thr1e10_XY/STRU | 21 ++ .../43_PW_DFTU_DS_S4_Thr1e10_XY/result.ref | 3 + .../17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/INPUT | 39 ++++ tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/KPT | 4 + .../17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/STRU | 21 ++ .../44_PW_DFTU_DS_S2_Thr10_Z/result.ref | 3 + .../45_PW_DFTU_DS_S4_Thr10_XY/INPUT | 38 ++++ .../17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/KPT | 4 + .../17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/STRU | 21 ++ .../45_PW_DFTU_DS_S4_Thr10_XY/result.ref | 3 + .../17_DS_DFTU/50_FeO_O_first_Fe_second/INPUT | 27 +++ tests/17_DS_DFTU/50_FeO_O_first_Fe_second/KPT | 4 + .../17_DS_DFTU/50_FeO_O_first_Fe_second/STRU | 29 +++ .../50_FeO_O_first_Fe_second/result.ref | 3 + .../17_DS_DFTU/51_FeO_Fe_first_O_second/INPUT | 27 +++ tests/17_DS_DFTU/51_FeO_Fe_first_O_second/KPT | 4 + .../17_DS_DFTU/51_FeO_Fe_first_O_second/STRU | 29 +++ .../51_FeO_Fe_first_O_second/result.ref | 3 + tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/INPUT | 33 +++ tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/KPT | 4 + tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/STRU | 21 ++ .../17_DS_DFTU/55_PW_DS_NSCF_S4_XY/result.ref | 3 + .../17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/INPUT | 32 +++ tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/KPT | 4 + tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/STRU | 21 ++ .../56_PW_DS_S4_DirectionOnly_XY/INPUT | 32 +++ .../56_PW_DS_S4_DirectionOnly_XY/KPT | 4 + .../56_PW_DS_S4_DirectionOnly_XY/STRU | 21 ++ .../56_PW_DS_S4_DirectionOnly_XY/result.ref | 3 + .../57_PW_DFTU_DS_S4_DirectionOnly_XY/INPUT | 39 ++++ .../57_PW_DFTU_DS_S4_DirectionOnly_XY/KPT | 4 + .../57_PW_DFTU_DS_S4_DirectionOnly_XY/STRU | 21 ++ .../result.ref | 3 + .../58_LCAO_DS_S4_DirectionOnly_XY/INPUT | 31 +++ .../58_LCAO_DS_S4_DirectionOnly_XY/KPT | 4 + .../58_LCAO_DS_S4_DirectionOnly_XY/STRU | 21 ++ .../58_LCAO_DS_S4_DirectionOnly_XY/result.ref | 3 + .../59_LCAO_DFTU_DS_S4_DirectionOnly_XY/INPUT | 37 ++++ .../59_LCAO_DFTU_DS_S4_DirectionOnly_XY/KPT | 4 + .../59_LCAO_DFTU_DS_S4_DirectionOnly_XY/STRU | 21 ++ .../result.ref | 3 + .../60_PW_DFTU_DS_NSCF_Band_XY/INPUT | 40 ++++ .../17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/KPT | 4 + .../60_PW_DFTU_DS_NSCF_Band_XY/STRU | 21 ++ .../60_PW_DFTU_DS_NSCF_Band_XY/band.txt.ref | 4 + .../60_PW_DFTU_DS_NSCF_Band_XY/result.ref | 4 + .../60_PW_DFTU_DS_NSCF_Band_XY/scf/INPUT | 38 ++++ .../60_PW_DFTU_DS_NSCF_Band_XY/scf/KPT | 4 + .../60_PW_DFTU_DS_NSCF_Band_XY/scf/STRU | 21 ++ tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/INPUT | 31 +++ tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/KPT | 4 + tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/STRU | 21 ++ .../61_LCAO_DS_NSCF_S4_XY/result.ref | 3 + .../61_LCAO_DS_NSCF_S4_XY/scf/INPUT | 30 +++ .../17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/KPT | 4 + .../17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/STRU | 21 ++ .../62_LCAO_DFTU_NSCF_Band_XY/INPUT | 29 +++ .../17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/KPT | 4 + .../17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/STRU | 21 ++ .../62_LCAO_DFTU_NSCF_Band_XY/band.txt.ref | 4 + .../62_LCAO_DFTU_NSCF_Band_XY/result.ref | 4 + .../62_LCAO_DFTU_NSCF_Band_XY/scf/INPUT | 27 +++ .../62_LCAO_DFTU_NSCF_Band_XY/scf/KPT | 4 + .../62_LCAO_DFTU_NSCF_Band_XY/scf/STRU | 21 ++ .../63_LCAO_DFTU_DS_NSCF_Band_XY/INPUT | 38 ++++ .../63_LCAO_DFTU_DS_NSCF_Band_XY/KPT | 4 + .../63_LCAO_DFTU_DS_NSCF_Band_XY/STRU | 21 ++ .../63_LCAO_DFTU_DS_NSCF_Band_XY/band.txt.ref | 4 + .../63_LCAO_DFTU_DS_NSCF_Band_XY/result.ref | 4 + .../63_LCAO_DFTU_DS_NSCF_Band_XY/scf/INPUT | 36 ++++ .../63_LCAO_DFTU_DS_NSCF_Band_XY/scf/KPT | 4 + .../63_LCAO_DFTU_DS_NSCF_Band_XY/scf/STRU | 21 ++ .../17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/INPUT | 31 +++ tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/KPT | 4 + tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/STRU | 21 ++ .../64_PW_DFTU_NSCF_Band_XY/band.txt.ref | 4 + .../64_PW_DFTU_NSCF_Band_XY/result.ref | 4 + .../64_PW_DFTU_NSCF_Band_XY/scf/INPUT | 29 +++ .../64_PW_DFTU_NSCF_Band_XY/scf/KPT | 4 + .../64_PW_DFTU_NSCF_Band_XY/scf/STRU | 21 ++ tests/17_DS_DFTU/CASES_CPU.txt | 62 ++++++ tests/17_DS_DFTU/CMakeLists.txt | 16 ++ tests/17_DS_DFTU/README.md | 184 ++++++++++++++++ tests/17_DS_DFTU/run_scf_nscf.sh | 202 ++++++++++++++++++ tests/CMakeLists.txt | 1 + 215 files changed, 3661 insertions(+) create mode 100644 tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/INPUT create mode 100644 tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/KPT create mode 100644 tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/STRU create mode 100644 tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/result.ref create mode 100644 tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/INPUT create mode 100644 tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/KPT create mode 100644 tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/STRU create mode 100644 tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/result.ref create mode 100644 tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/INPUT create mode 100644 tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/KPT create mode 100644 tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/STRU create mode 100644 tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/result.ref create mode 100644 tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/INPUT create mode 100644 tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/KPT create mode 100644 tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/STRU create mode 100644 tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/result.ref create mode 100644 tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/INPUT create mode 100644 tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/KPT create mode 100644 tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/STRU create mode 100644 tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/result.ref create mode 100644 tests/17_DS_DFTU/06_PW_SPIN_S2_Z/INPUT create mode 100644 tests/17_DS_DFTU/06_PW_SPIN_S2_Z/KPT create mode 100644 tests/17_DS_DFTU/06_PW_SPIN_S2_Z/STRU create mode 100644 tests/17_DS_DFTU/06_PW_SPIN_S2_Z/result.ref create mode 100644 tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/INPUT create mode 100644 tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/KPT create mode 100644 tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/STRU create mode 100644 tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/result.ref create mode 100644 tests/17_DS_DFTU/08_PW_DFTU_S2_Z/INPUT create mode 100644 tests/17_DS_DFTU/08_PW_DFTU_S2_Z/KPT create mode 100644 tests/17_DS_DFTU/08_PW_DFTU_S2_Z/STRU create mode 100644 tests/17_DS_DFTU/08_PW_DFTU_S2_Z/result.ref create mode 100644 tests/17_DS_DFTU/09_PW_DFTU_S4_XY/INPUT create mode 100644 tests/17_DS_DFTU/09_PW_DFTU_S4_XY/KPT create mode 100644 tests/17_DS_DFTU/09_PW_DFTU_S4_XY/STRU create mode 100644 tests/17_DS_DFTU/09_PW_DFTU_S4_XY/result.ref create mode 100644 tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/INPUT create mode 100644 tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/KPT create mode 100644 tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/STRU create mode 100644 tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/result.ref create mode 100644 tests/17_DS_DFTU/12_PW_DS_S2_Z/INPUT create mode 100644 tests/17_DS_DFTU/12_PW_DS_S2_Z/KPT create mode 100644 tests/17_DS_DFTU/12_PW_DS_S2_Z/STRU create mode 100644 tests/17_DS_DFTU/12_PW_DS_S2_Z/result.ref create mode 100644 tests/17_DS_DFTU/14_PW_DS_S4_XYZ/INPUT create mode 100644 tests/17_DS_DFTU/14_PW_DS_S4_XYZ/KPT create mode 100644 tests/17_DS_DFTU/14_PW_DS_S4_XYZ/STRU create mode 100644 tests/17_DS_DFTU/14_PW_DS_S4_XYZ/result.ref create mode 100644 tests/17_DS_DFTU/15_PW_DS_S4_Z/INPUT create mode 100644 tests/17_DS_DFTU/15_PW_DS_S4_Z/KPT create mode 100644 tests/17_DS_DFTU/15_PW_DS_S4_Z/STRU create mode 100644 tests/17_DS_DFTU/15_PW_DS_S4_Z/result.ref create mode 100644 tests/17_DS_DFTU/16_PW_DS_S4_XY/INPUT create mode 100644 tests/17_DS_DFTU/16_PW_DS_S4_XY/KPT create mode 100644 tests/17_DS_DFTU/16_PW_DS_S4_XY/STRU create mode 100644 tests/17_DS_DFTU/16_PW_DS_S4_XY/result.ref create mode 100644 tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/INPUT create mode 100644 tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/KPT create mode 100644 tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/STRU create mode 100644 tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/result.ref create mode 100644 tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/INPUT create mode 100644 tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/KPT create mode 100644 tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/STRU create mode 100644 tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/result.ref create mode 100644 tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/INPUT create mode 100644 tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/KPT create mode 100644 tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/STRU create mode 100644 tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/result.ref create mode 100644 tests/17_DS_DFTU/24_LCAO_DS_S2_Z/INPUT create mode 100644 tests/17_DS_DFTU/24_LCAO_DS_S2_Z/KPT create mode 100644 tests/17_DS_DFTU/24_LCAO_DS_S2_Z/STRU create mode 100644 tests/17_DS_DFTU/24_LCAO_DS_S2_Z/result.ref create mode 100644 tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/INPUT create mode 100644 tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/KPT create mode 100644 tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/STRU create mode 100644 tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/result.ref create mode 100644 tests/17_DS_DFTU/27_LCAO_DS_S4_Z/INPUT create mode 100644 tests/17_DS_DFTU/27_LCAO_DS_S4_Z/KPT create mode 100644 tests/17_DS_DFTU/27_LCAO_DS_S4_Z/STRU create mode 100644 tests/17_DS_DFTU/27_LCAO_DS_S4_Z/result.ref create mode 100644 tests/17_DS_DFTU/28_LCAO_DS_S4_XY/INPUT create mode 100644 tests/17_DS_DFTU/28_LCAO_DS_S4_XY/KPT create mode 100644 tests/17_DS_DFTU/28_LCAO_DS_S4_XY/STRU create mode 100644 tests/17_DS_DFTU/28_LCAO_DS_S4_XY/result.ref create mode 100644 tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/INPUT create mode 100644 tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/KPT create mode 100644 tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/STRU create mode 100644 tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/result.ref create mode 100644 tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/INPUT create mode 100644 tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/KPT create mode 100644 tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/STRU create mode 100644 tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/result.ref create mode 100644 tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/INPUT create mode 100644 tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/KPT create mode 100644 tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/STRU create mode 100644 tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/result.ref create mode 100644 tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/INPUT create mode 100644 tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/KPT create mode 100644 tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/STRU create mode 100644 tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/result.ref create mode 100644 tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/INPUT create mode 100644 tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/KPT create mode 100644 tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/STRU create mode 100644 tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/result.ref create mode 100644 tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/INPUT create mode 100644 tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/KPT create mode 100644 tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/STRU create mode 100644 tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/result.ref create mode 100644 tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/INPUT create mode 100644 tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/KPT create mode 100644 tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/STRU create mode 100644 tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/result.ref create mode 100644 tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/INPUT create mode 100644 tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/KPT create mode 100644 tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/STRU create mode 100644 tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/result.ref create mode 100644 tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/INPUT create mode 100644 tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/KPT create mode 100644 tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/STRU create mode 100644 tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/result.ref create mode 100644 tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/INPUT create mode 100644 tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/KPT create mode 100644 tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/STRU create mode 100644 tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/result.ref create mode 100644 tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/INPUT create mode 100644 tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/KPT create mode 100644 tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/STRU create mode 100644 tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/result.ref create mode 100644 tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/INPUT create mode 100644 tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/KPT create mode 100644 tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/STRU create mode 100644 tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/result.ref create mode 100644 tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/INPUT create mode 100644 tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/KPT create mode 100644 tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/STRU create mode 100644 tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/result.ref create mode 100644 tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/INPUT create mode 100644 tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/KPT create mode 100644 tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/STRU create mode 100644 tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/result.ref create mode 100644 tests/17_DS_DFTU/50_FeO_O_first_Fe_second/INPUT create mode 100644 tests/17_DS_DFTU/50_FeO_O_first_Fe_second/KPT create mode 100644 tests/17_DS_DFTU/50_FeO_O_first_Fe_second/STRU create mode 100644 tests/17_DS_DFTU/50_FeO_O_first_Fe_second/result.ref create mode 100644 tests/17_DS_DFTU/51_FeO_Fe_first_O_second/INPUT create mode 100644 tests/17_DS_DFTU/51_FeO_Fe_first_O_second/KPT create mode 100644 tests/17_DS_DFTU/51_FeO_Fe_first_O_second/STRU create mode 100644 tests/17_DS_DFTU/51_FeO_Fe_first_O_second/result.ref create mode 100644 tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/INPUT create mode 100644 tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/KPT create mode 100644 tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/STRU create mode 100644 tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/result.ref create mode 100644 tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/INPUT create mode 100644 tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/KPT create mode 100644 tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/STRU create mode 100644 tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/INPUT create mode 100644 tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/KPT create mode 100644 tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/STRU create mode 100644 tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/result.ref create mode 100644 tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/INPUT create mode 100644 tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/KPT create mode 100644 tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/STRU create mode 100644 tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/result.ref create mode 100644 tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/INPUT create mode 100644 tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/KPT create mode 100644 tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/STRU create mode 100644 tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/result.ref create mode 100644 tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/INPUT create mode 100644 tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/KPT create mode 100644 tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/STRU create mode 100644 tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/result.ref create mode 100644 tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/INPUT create mode 100644 tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/KPT create mode 100644 tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/STRU create mode 100644 tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/band.txt.ref create mode 100644 tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/result.ref create mode 100644 tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/INPUT create mode 100644 tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/KPT create mode 100644 tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/STRU create mode 100644 tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/INPUT create mode 100644 tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/KPT create mode 100644 tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/STRU create mode 100644 tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/result.ref create mode 100644 tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/INPUT create mode 100644 tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/KPT create mode 100644 tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/STRU create mode 100644 tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/INPUT create mode 100644 tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/KPT create mode 100644 tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/STRU create mode 100644 tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/band.txt.ref create mode 100644 tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/result.ref create mode 100644 tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/INPUT create mode 100644 tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/KPT create mode 100644 tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/STRU create mode 100644 tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/INPUT create mode 100644 tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/KPT create mode 100644 tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/STRU create mode 100644 tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/band.txt.ref create mode 100644 tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/result.ref create mode 100644 tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/INPUT create mode 100644 tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/KPT create mode 100644 tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/STRU create mode 100644 tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/INPUT create mode 100644 tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/KPT create mode 100644 tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/STRU create mode 100644 tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/band.txt.ref create mode 100644 tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/result.ref create mode 100644 tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/INPUT create mode 100644 tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/KPT create mode 100644 tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/STRU create mode 100644 tests/17_DS_DFTU/CASES_CPU.txt create mode 100644 tests/17_DS_DFTU/CMakeLists.txt create mode 100644 tests/17_DS_DFTU/README.md create mode 100755 tests/17_DS_DFTU/run_scf_nscf.sh diff --git a/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/INPUT b/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/INPUT new file mode 100644 index 00000000000..7b498cf0ca4 --- /dev/null +++ b/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/INPUT @@ -0,0 +1,23 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 + +nspin 2 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + + + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/KPT b/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/KPT new file mode 100644 index 00000000000..c289c0158aa --- /dev/null +++ b/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Gamma +1 1 1 0 0 0 diff --git a/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/STRU b/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/STRU new file mode 100644 index 00000000000..8535c1db16e --- /dev/null +++ b/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 +0.51 0.51 0.51 mag -2.0 diff --git a/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/result.ref b/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/result.ref new file mode 100644 index 00000000000..83d1b45cfc4 --- /dev/null +++ b/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6787.961875326573 +etotperatomref -3393.9809376640 +totaltimeref 3.93 diff --git a/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/INPUT b/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/INPUT new file mode 100644 index 00000000000..163c7b3bcd6 --- /dev/null +++ b/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/INPUT @@ -0,0 +1,20 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 +noncolin 1 +#nbands 40 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/KPT b/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/KPT new file mode 100644 index 00000000000..c289c0158aa --- /dev/null +++ b/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Gamma +1 1 1 0 0 0 diff --git a/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/STRU b/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/STRU new file mode 100644 index 00000000000..a96b8d1a0e3 --- /dev/null +++ b/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 1.155 1.155 1.155 +0.51 0.51 0.51 magmom -1.155 -1.155 -1.155 diff --git a/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/result.ref b/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/result.ref new file mode 100644 index 00000000000..d1b31b18b36 --- /dev/null +++ b/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/result.ref @@ -0,0 +1,3 @@ +etotref -6787.961880425138 +etotperatomref -3393.9809384824 +totaltimeref 8.90 diff --git a/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/INPUT b/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/INPUT new file mode 100644 index 00000000000..1eb50a84479 --- /dev/null +++ b/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/INPUT @@ -0,0 +1,28 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 + +nspin 2 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/KPT b/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/STRU b/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/STRU new file mode 100644 index 00000000000..8535c1db16e --- /dev/null +++ b/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 +0.51 0.51 0.51 mag -2.0 diff --git a/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/result.ref b/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/result.ref new file mode 100644 index 00000000000..bb1d7aa5ce8 --- /dev/null +++ b/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6772.0999515218118177 +etotperatomref -3386.0499757609 +totaltimeref 6.11 diff --git a/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/INPUT b/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/INPUT new file mode 100644 index 00000000000..7daab2ff56e --- /dev/null +++ b/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/INPUT @@ -0,0 +1,28 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 + +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/KPT b/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/STRU b/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/STRU new file mode 100644 index 00000000000..63c4d14399c --- /dev/null +++ b/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/result.ref b/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/result.ref new file mode 100644 index 00000000000..1a258220cfb --- /dev/null +++ b/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6772.1004497577005168 +etotperatomref -3386.0500835053 +totaltimeref 10.33 diff --git a/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/INPUT b/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/INPUT new file mode 100644 index 00000000000..efb3db1a055 --- /dev/null +++ b/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/INPUT @@ -0,0 +1,27 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 +noncolin 1 +#nbands 40 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/KPT b/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/STRU b/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/STRU new file mode 100644 index 00000000000..a96b8d1a0e3 --- /dev/null +++ b/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 1.155 1.155 1.155 +0.51 0.51 0.51 magmom -1.155 -1.155 -1.155 diff --git a/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/result.ref b/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/result.ref new file mode 100644 index 00000000000..e9c930d41ef --- /dev/null +++ b/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/result.ref @@ -0,0 +1,3 @@ +etotref -6772.1004562034922856 +etotperatomref -3386.0500833394 +totaltimeref 10.35 diff --git a/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/INPUT b/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/INPUT new file mode 100644 index 00000000000..567770e830b --- /dev/null +++ b/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/INPUT @@ -0,0 +1,20 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 50 +gamma_only 0 +nspin 2 +nbands 28 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +pseudo_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/KPT b/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/KPT new file mode 100644 index 00000000000..c289c0158aa --- /dev/null +++ b/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Gamma +1 1 1 0 0 0 diff --git a/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/STRU b/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/STRU new file mode 100644 index 00000000000..7d8feef3406 --- /dev/null +++ b/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/STRU @@ -0,0 +1,18 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 +0.51 0.51 0.51 mag -2.0 diff --git a/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/result.ref b/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/result.ref new file mode 100644 index 00000000000..5a43c537250 --- /dev/null +++ b/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6807.727140777411 +etotperatomref -3403.8635703887 +totaltimeref 2.73 diff --git a/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/INPUT b/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/INPUT new file mode 100644 index 00000000000..f0efbfb4f01 --- /dev/null +++ b/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/INPUT @@ -0,0 +1,21 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 +noncolin 1 +#nbands 40 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +kpar 1 +pseudo_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/KPT b/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/KPT new file mode 100644 index 00000000000..c289c0158aa --- /dev/null +++ b/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Gamma +1 1 1 0 0 0 diff --git a/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/STRU b/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/STRU new file mode 100644 index 00000000000..d8ea895cf0b --- /dev/null +++ b/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/STRU @@ -0,0 +1,18 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 1.155 1.155 1.155 +0.51 0.51 0.51 magmom -1.155 -1.155 -1.155 diff --git a/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/result.ref b/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/result.ref new file mode 100644 index 00000000000..c17d6b8de03 --- /dev/null +++ b/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/result.ref @@ -0,0 +1,3 @@ +etotref -6350.021298529959 +etotperatomref -3175.0106492650 +totaltimeref 1.53 diff --git a/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/INPUT b/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/INPUT new file mode 100644 index 00000000000..88bcde220e8 --- /dev/null +++ b/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/INPUT @@ -0,0 +1,29 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 50 +gamma_only 0 +device cpu + +nspin 2 +nbands 28 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/KPT b/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/STRU b/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/STRU new file mode 100644 index 00000000000..8535c1db16e --- /dev/null +++ b/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 +0.51 0.51 0.51 mag -2.0 diff --git a/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/result.ref b/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/result.ref new file mode 100644 index 00000000000..f9ddfdd28af --- /dev/null +++ b/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6792.3335167095001452 +etotperatomref -3396.1667583548 +totaltimeref 21.07 diff --git a/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/INPUT b/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/INPUT new file mode 100644 index 00000000000..5d19e1c0665 --- /dev/null +++ b/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/INPUT @@ -0,0 +1,29 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 +device cpu + +noncolin 1 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +kpar 1 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/KPT b/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/STRU b/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/STRU new file mode 100644 index 00000000000..63c4d14399c --- /dev/null +++ b/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/result.ref b/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/result.ref new file mode 100644 index 00000000000..8242af7627b --- /dev/null +++ b/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6364.2658763901727070 +etotperatomref -3182.1329381951 +totaltimeref 7.82 diff --git a/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/INPUT b/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/INPUT new file mode 100644 index 00000000000..5ec0a0f0e53 --- /dev/null +++ b/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/INPUT @@ -0,0 +1,29 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +nspin 2 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +kpar 2 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/KPT b/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/STRU b/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/STRU new file mode 100644 index 00000000000..8535c1db16e --- /dev/null +++ b/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 +0.51 0.51 0.51 mag -2.0 diff --git a/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/result.ref b/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/result.ref new file mode 100644 index 00000000000..ecc536b3d55 --- /dev/null +++ b/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/result.ref @@ -0,0 +1,3 @@ +etotref -6364.2654756626079688 +etotperatomref -3182.1327378313039844 +totaltimeref 2.04 diff --git a/tests/17_DS_DFTU/12_PW_DS_S2_Z/INPUT b/tests/17_DS_DFTU/12_PW_DS_S2_Z/INPUT new file mode 100644 index 00000000000..28530e1f7f6 --- /dev/null +++ b/tests/17_DS_DFTU/12_PW_DS_S2_Z/INPUT @@ -0,0 +1,31 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 +nspin 2 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +kpar 2 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/12_PW_DS_S2_Z/KPT b/tests/17_DS_DFTU/12_PW_DS_S2_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/12_PW_DS_S2_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/12_PW_DS_S2_Z/STRU b/tests/17_DS_DFTU/12_PW_DS_S2_Z/STRU new file mode 100644 index 00000000000..b942348be5d --- /dev/null +++ b/tests/17_DS_DFTU/12_PW_DS_S2_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 sc 1 1 1 +0.51 0.51 0.51 mag -2.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/12_PW_DS_S2_Z/result.ref b/tests/17_DS_DFTU/12_PW_DS_S2_Z/result.ref new file mode 100644 index 00000000000..9dd83d8e706 --- /dev/null +++ b/tests/17_DS_DFTU/12_PW_DS_S2_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6366.569118260046 +etotperatomref -3183.2845591300 +totaltimeref 1.97 diff --git a/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/INPUT b/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/INPUT new file mode 100644 index 00000000000..0d74fa0b60a --- /dev/null +++ b/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/INPUT @@ -0,0 +1,31 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +kpar 2 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/KPT b/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/STRU b/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/STRU new file mode 100644 index 00000000000..0a9effad744 --- /dev/null +++ b/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 1.155 1.155 1.155 sc 1 1 1 +0.51 0.51 0.51 magmom -1.155 -1.155 -1.155 sc 1 1 1 diff --git a/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/result.ref b/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/result.ref new file mode 100644 index 00000000000..f63986cceb7 --- /dev/null +++ b/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/result.ref @@ -0,0 +1,3 @@ +etotref -6366.562922988214 +etotperatomref -3183.2814614941 +totaltimeref 4.23 diff --git a/tests/17_DS_DFTU/15_PW_DS_S4_Z/INPUT b/tests/17_DS_DFTU/15_PW_DS_S4_Z/INPUT new file mode 100644 index 00000000000..a300c671979 --- /dev/null +++ b/tests/17_DS_DFTU/15_PW_DS_S4_Z/INPUT @@ -0,0 +1,31 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 +noncolin 1 +#nbands 40 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +kpar 2 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/15_PW_DS_S4_Z/KPT b/tests/17_DS_DFTU/15_PW_DS_S4_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/15_PW_DS_S4_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/15_PW_DS_S4_Z/STRU b/tests/17_DS_DFTU/15_PW_DS_S4_Z/STRU new file mode 100644 index 00000000000..bbe4a2796fa --- /dev/null +++ b/tests/17_DS_DFTU/15_PW_DS_S4_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 sc 1 1 1 +0.51 0.51 0.51 mag -2.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/15_PW_DS_S4_Z/result.ref b/tests/17_DS_DFTU/15_PW_DS_S4_Z/result.ref new file mode 100644 index 00000000000..07523240a6f --- /dev/null +++ b/tests/17_DS_DFTU/15_PW_DS_S4_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6366.562433916121 +etotperatomref -3183.2812169581 +totaltimeref 4.26 diff --git a/tests/17_DS_DFTU/16_PW_DS_S4_XY/INPUT b/tests/17_DS_DFTU/16_PW_DS_S4_XY/INPUT new file mode 100644 index 00000000000..a300c671979 --- /dev/null +++ b/tests/17_DS_DFTU/16_PW_DS_S4_XY/INPUT @@ -0,0 +1,31 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 +noncolin 1 +#nbands 40 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +kpar 2 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/16_PW_DS_S4_XY/KPT b/tests/17_DS_DFTU/16_PW_DS_S4_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/16_PW_DS_S4_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/16_PW_DS_S4_XY/STRU b/tests/17_DS_DFTU/16_PW_DS_S4_XY/STRU new file mode 100644 index 00000000000..1ffecf17384 --- /dev/null +++ b/tests/17_DS_DFTU/16_PW_DS_S4_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/16_PW_DS_S4_XY/result.ref b/tests/17_DS_DFTU/16_PW_DS_S4_XY/result.ref new file mode 100644 index 00000000000..c2ed3287e21 --- /dev/null +++ b/tests/17_DS_DFTU/16_PW_DS_S4_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6366.562695059035 +etotperatomref -3183.2813475295 +totaltimeref 4.19 diff --git a/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/INPUT b/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/INPUT new file mode 100644 index 00000000000..f403abe54b4 --- /dev/null +++ b/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/INPUT @@ -0,0 +1,39 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +nspin 2 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +kpar 2 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/KPT b/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/STRU b/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/STRU new file mode 100644 index 00000000000..bbe4a2796fa --- /dev/null +++ b/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 sc 1 1 1 +0.51 0.51 0.51 mag -2.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/result.ref b/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/result.ref new file mode 100644 index 00000000000..654cb15b3ee --- /dev/null +++ b/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6355.9855588350255857 +etotperatomref -3177.9927794175 +totaltimeref 2.89 diff --git a/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/INPUT b/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/INPUT new file mode 100644 index 00000000000..34cb4471478 --- /dev/null +++ b/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/INPUT @@ -0,0 +1,39 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 +device cpu + +noncolin 1 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +kpar 2 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/KPT b/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/STRU b/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/STRU new file mode 100644 index 00000000000..1ffecf17384 --- /dev/null +++ b/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/result.ref b/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/result.ref new file mode 100644 index 00000000000..ed294b04143 --- /dev/null +++ b/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6355.9841673819892094 +etotperatomref -3177.9920836910 +totaltimeref 5.88 diff --git a/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/INPUT b/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/INPUT new file mode 100644 index 00000000000..a8de392596a --- /dev/null +++ b/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/INPUT @@ -0,0 +1,38 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 +noncolin 1 +#nbands 40 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +kpar 2 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/KPT b/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/STRU b/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/STRU new file mode 100644 index 00000000000..bbe4a2796fa --- /dev/null +++ b/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 sc 1 1 1 +0.51 0.51 0.51 mag -2.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/result.ref b/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/result.ref new file mode 100644 index 00000000000..1810d27088f --- /dev/null +++ b/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6355.9834051938123594 +etotperatomref -3177.9917025969 +totaltimeref 5.46 diff --git a/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/INPUT b/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/INPUT new file mode 100644 index 00000000000..fe803afb672 --- /dev/null +++ b/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/INPUT @@ -0,0 +1,33 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 + +nspin 4 +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-3 +#sc_lambda_strategy linear_scan + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/KPT b/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/STRU b/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/STRU new file mode 100644 index 00000000000..cf31449a12b --- /dev/null +++ b/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 sc 1 1 1 lambda 1 1 1 +0.51 0.51 0.51 mag -2.0 sc 1 1 1 lambda 1 1 1 diff --git a/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/result.ref b/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/result.ref new file mode 100644 index 00000000000..3ea422eac92 --- /dev/null +++ b/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6777.701256736625 +etotperatomref -3388.8506283683 +totaltimeref 24.31 diff --git a/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/INPUT b/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/INPUT new file mode 100644 index 00000000000..b2b6ce9c8d7 --- /dev/null +++ b/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/INPUT @@ -0,0 +1,32 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 + +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-2 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +sc_lambda_strategy linear_response diff --git a/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/KPT b/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/STRU b/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/STRU new file mode 100644 index 00000000000..928faa5b29c --- /dev/null +++ b/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 1.155 1.155 1.155 sc 1 1 1 +0.51 0.51 0.51 magmom -1.155 -1.155 -1.155 sc 1 1 1 diff --git a/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/result.ref b/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/result.ref new file mode 100644 index 00000000000..2ffe77f0f0b --- /dev/null +++ b/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/result.ref @@ -0,0 +1,3 @@ +etotref -6777.701352737945 +etotperatomref -3388.8506763690 +totaltimeref 31.91 diff --git a/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/INPUT b/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/INPUT new file mode 100644 index 00000000000..4797cb91fcf --- /dev/null +++ b/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/INPUT @@ -0,0 +1,30 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 +noncolin 1 +#nbands 40 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-2 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/KPT b/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/STRU b/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/STRU new file mode 100644 index 00000000000..b6c219f04a6 --- /dev/null +++ b/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 0.0 0.0 2.0 sc 0 0 1 +0.51 0.51 0.51 magmom 0.0 0.0 -2.0 sc 0 0 1 diff --git a/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/result.ref b/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/result.ref new file mode 100644 index 00000000000..820480722b9 --- /dev/null +++ b/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6777.700905394034 +etotperatomref -3388.8504526970 +totaltimeref 30.38 diff --git a/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/INPUT b/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/INPUT new file mode 100644 index 00000000000..4797cb91fcf --- /dev/null +++ b/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/INPUT @@ -0,0 +1,30 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 +noncolin 1 +#nbands 40 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-2 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/KPT b/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/STRU b/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/STRU new file mode 100644 index 00000000000..ac54252cab0 --- /dev/null +++ b/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 0 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 0 diff --git a/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/result.ref b/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/result.ref new file mode 100644 index 00000000000..897f0f8b2e0 --- /dev/null +++ b/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6777.701049634186 +etotperatomref -3388.8505248171 +totaltimeref 31.96 diff --git a/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/INPUT b/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/INPUT new file mode 100644 index 00000000000..0d8d5a0c3f1 --- /dev/null +++ b/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/INPUT @@ -0,0 +1,36 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 + +nspin 2 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-3 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/KPT b/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/STRU b/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/STRU new file mode 100644 index 00000000000..8535c1db16e --- /dev/null +++ b/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 +0.51 0.51 0.51 mag -2.0 diff --git a/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/result.ref b/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/result.ref new file mode 100644 index 00000000000..4ca0323afc6 --- /dev/null +++ b/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6772.1000709242498488 +etotperatomref -3386.0500837373 +totaltimeref 6.08 diff --git a/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/INPUT b/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/INPUT new file mode 100644 index 00000000000..5312a11245b --- /dev/null +++ b/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/INPUT @@ -0,0 +1,36 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 + +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-3 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/KPT b/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/STRU b/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/STRU new file mode 100644 index 00000000000..ac54252cab0 --- /dev/null +++ b/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 0 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 0 diff --git a/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/result.ref b/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/result.ref new file mode 100644 index 00000000000..1c22701c6f4 --- /dev/null +++ b/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6770.7755674724503479 +etotperatomref -3385.3877837362 +totaltimeref 21.27 diff --git a/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/INPUT b/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/INPUT new file mode 100644 index 00000000000..19873fdd2dc --- /dev/null +++ b/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/INPUT @@ -0,0 +1,36 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 + +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-2 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/KPT b/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/STRU b/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/STRU new file mode 100644 index 00000000000..928faa5b29c --- /dev/null +++ b/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 1.155 1.155 1.155 sc 1 1 1 +0.51 0.51 0.51 magmom -1.155 -1.155 -1.155 sc 1 1 1 diff --git a/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/result.ref b/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/result.ref new file mode 100644 index 00000000000..c3db185c468 --- /dev/null +++ b/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/result.ref @@ -0,0 +1,3 @@ +etotref -6770.9783920605041203 +etotperatomref -3385.4891960303 +totaltimeref 44.54 diff --git a/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/INPUT b/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/INPUT new file mode 100644 index 00000000000..092d43abcb7 --- /dev/null +++ b/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/INPUT @@ -0,0 +1,35 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 +noncolin 1 +#nbands 40 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-3 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/KPT b/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/STRU b/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/STRU new file mode 100644 index 00000000000..b6c219f04a6 --- /dev/null +++ b/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 0.0 0.0 2.0 sc 0 0 1 +0.51 0.51 0.51 magmom 0.0 0.0 -2.0 sc 0 0 1 diff --git a/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/result.ref b/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/result.ref new file mode 100644 index 00000000000..16711d4360e --- /dev/null +++ b/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6770.7660917255634558 +etotperatomref -3385.3830458628 +totaltimeref 19.80 diff --git a/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/INPUT b/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/INPUT new file mode 100644 index 00000000000..0ff2ef9a1a7 --- /dev/null +++ b/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/INPUT @@ -0,0 +1,33 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +noncolin 0 +nspin 2 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 +kpar 1 + +# DeltaSpin parameters -- nsc=1: read lambda only, skip iterative optimization +sc_mag_switch 1 +sc_thr 1e-4 +nsc 1 +nsc_min 1 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/KPT b/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/STRU b/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/STRU new file mode 100644 index 00000000000..115ded29104 --- /dev/null +++ b/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 mag -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/result.ref b/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/result.ref new file mode 100644 index 00000000000..cb8011ebea5 --- /dev/null +++ b/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6368.964006946522 +etotperatomref -3184.4820034733 +totaltimeref 4.42 diff --git a/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/INPUT b/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/INPUT new file mode 100644 index 00000000000..b5def492a60 --- /dev/null +++ b/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/INPUT @@ -0,0 +1,32 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +noncolin 1 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 +kpar 2 + +# DeltaSpin parameters -- nsc=1: read lambda only, skip iterative optimization +sc_mag_switch 1 +sc_thr 1e-4 +nsc 1 +nsc_min 1 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/KPT b/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/STRU b/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/STRU new file mode 100644 index 00000000000..115ded29104 --- /dev/null +++ b/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 mag -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/result.ref b/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/result.ref new file mode 100644 index 00000000000..8f1a3fb245c --- /dev/null +++ b/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6370.632169015013 +etotperatomref -3185.3160845075 +totaltimeref 4.29 diff --git a/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/INPUT b/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/INPUT new file mode 100644 index 00000000000..544b67acd29 --- /dev/null +++ b/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/INPUT @@ -0,0 +1,33 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +noncolin 0 +nspin 2 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 +kpar 1 + +# DeltaSpin -- strict convergence threshold +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/KPT b/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/STRU b/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/STRU new file mode 100644 index 00000000000..b43039501d3 --- /dev/null +++ b/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 0.0 0.0 +0.51 0.51 0.51 mag -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/result.ref b/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/result.ref new file mode 100644 index 00000000000..58e32cd1c0d --- /dev/null +++ b/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6368.964006945744 +etotperatomref -3184.4820034729 +totaltimeref 6.33 diff --git a/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/INPUT b/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/INPUT new file mode 100644 index 00000000000..adac5688d14 --- /dev/null +++ b/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/INPUT @@ -0,0 +1,32 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +noncolin 1 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 +kpar 2 + +# DeltaSpin -- strict convergence threshold +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/KPT b/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/STRU b/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/STRU new file mode 100644 index 00000000000..b43039501d3 --- /dev/null +++ b/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 0.0 0.0 +0.51 0.51 0.51 mag -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/result.ref b/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/result.ref new file mode 100644 index 00000000000..8507c130334 --- /dev/null +++ b/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6370.632169015102 +etotperatomref -3185.3160845076 +totaltimeref 3.72 diff --git a/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/INPUT b/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/INPUT new file mode 100644 index 00000000000..18df498a747 --- /dev/null +++ b/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/INPUT @@ -0,0 +1,34 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +noncolin 0 +nspin 2 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +out_alllog 1 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 +kpar 1 + +# DeltaSpin -- loose convergence threshold +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/KPT b/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/STRU b/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/STRU new file mode 100644 index 00000000000..b43039501d3 --- /dev/null +++ b/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 0.0 0.0 +0.51 0.51 0.51 mag -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/result.ref b/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/result.ref new file mode 100644 index 00000000000..05c80f4f708 --- /dev/null +++ b/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/result.ref @@ -0,0 +1,4 @@ +etotref -6368.964006946539 +etotperatomref -3184.4820034733 +log_filename_validation 1 +totaltimeref 3.74 diff --git a/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/INPUT b/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/INPUT new file mode 100644 index 00000000000..38276dc8689 --- /dev/null +++ b/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/INPUT @@ -0,0 +1,32 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +noncolin 1 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 +kpar 2 + +# DeltaSpin -- loose convergence threshold +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 0.1 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/KPT b/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/STRU b/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/STRU new file mode 100644 index 00000000000..115ded29104 --- /dev/null +++ b/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 mag -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/result.ref b/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/result.ref new file mode 100644 index 00000000000..acf31e682c6 --- /dev/null +++ b/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6366.564253345298 +etotperatomref -3183.2821266726 +totaltimeref 7.03 diff --git a/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/INPUT b/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/INPUT new file mode 100644 index 00000000000..e7bfa8339a9 --- /dev/null +++ b/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/INPUT @@ -0,0 +1,39 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +noncolin 0 +nspin 2 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 +kpar 1 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin -- strict convergence threshold +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/KPT b/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/STRU b/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/STRU new file mode 100644 index 00000000000..b43039501d3 --- /dev/null +++ b/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 0.0 0.0 +0.51 0.51 0.51 mag -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/result.ref b/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/result.ref new file mode 100644 index 00000000000..016eee221e3 --- /dev/null +++ b/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6363.8892809126737120 +etotperatomref -3181.9446404562 +totaltimeref 2.86 diff --git a/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/INPUT b/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/INPUT new file mode 100644 index 00000000000..4629ed7b775 --- /dev/null +++ b/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/INPUT @@ -0,0 +1,38 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +noncolin 1 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 +kpar 2 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin -- strict convergence threshold +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/KPT b/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/STRU b/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/STRU new file mode 100644 index 00000000000..b43039501d3 --- /dev/null +++ b/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 0.0 0.0 +0.51 0.51 0.51 mag -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/result.ref b/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/result.ref new file mode 100644 index 00000000000..fc8f809a7dd --- /dev/null +++ b/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6364.2658763871213523 +etotperatomref -3182.1329381935606761 +totaltimeref 3.0 diff --git a/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/INPUT b/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/INPUT new file mode 100644 index 00000000000..f5b277d5766 --- /dev/null +++ b/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/INPUT @@ -0,0 +1,39 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +noncolin 0 +nspin 2 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 +kpar 1 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin -- loose convergence threshold +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/KPT b/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/STRU b/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/STRU new file mode 100644 index 00000000000..115ded29104 --- /dev/null +++ b/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 mag -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/result.ref b/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/result.ref new file mode 100644 index 00000000000..f6a9e0e5326 --- /dev/null +++ b/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/result.ref @@ -0,0 +1,3 @@ +etotref -6358.1300039981460941 +etotperatomref -3179.0650019991 +totaltimeref 11.19 diff --git a/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/INPUT b/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/INPUT new file mode 100644 index 00000000000..bd4a2bedb7d --- /dev/null +++ b/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/INPUT @@ -0,0 +1,38 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +noncolin 1 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 +kpar 2 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin -- loose convergence threshold +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 0.1 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/KPT b/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/STRU b/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/STRU new file mode 100644 index 00000000000..115ded29104 --- /dev/null +++ b/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 mag -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/result.ref b/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/result.ref new file mode 100644 index 00000000000..14b18ac3fd4 --- /dev/null +++ b/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6355.9593396534382919 +etotperatomref -3177.9796698267 +totaltimeref 9.42 diff --git a/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/INPUT b/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/INPUT new file mode 100644 index 00000000000..3fad36b4e06 --- /dev/null +++ b/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/INPUT @@ -0,0 +1,27 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 50 +gamma_only 0 + +nspin 2 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr -1 2 +hubbard_u 0 5.0 +onsite_radius 3.0 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 \ No newline at end of file diff --git a/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/KPT b/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/KPT new file mode 100644 index 00000000000..1f26d6a8a39 --- /dev/null +++ b/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Gamma +1 1 1 0 0 0 \ No newline at end of file diff --git a/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/STRU b/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/STRU new file mode 100644 index 00000000000..4adbbff8e58 --- /dev/null +++ b/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/STRU @@ -0,0 +1,29 @@ +ATOMIC_SPECIES +O 1.000 O_ONCV_PBE-1.0.upf +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +8_O_gga_100Ry_7au_2s2p1d.orb +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +O +0.0 +2 +0.50 0.00 0.00 +0.00 0.50 0.50 + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 +0.50 0.50 0.50 mag -2.0 \ No newline at end of file diff --git a/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/result.ref b/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/result.ref new file mode 100644 index 00000000000..380a0b7b372 --- /dev/null +++ b/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/result.ref @@ -0,0 +1,3 @@ +etotref -7652.39578275317 +etotperatomref -1913.0989456883 +totaltimeref 2 \ No newline at end of file diff --git a/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/INPUT b/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/INPUT new file mode 100644 index 00000000000..ef007293197 --- /dev/null +++ b/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/INPUT @@ -0,0 +1,27 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 50 +gamma_only 0 + +nspin 2 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 -1 +hubbard_u 5.0 0 +onsite_radius 3.0 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 \ No newline at end of file diff --git a/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/KPT b/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/KPT new file mode 100644 index 00000000000..1f26d6a8a39 --- /dev/null +++ b/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Gamma +1 1 1 0 0 0 \ No newline at end of file diff --git a/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/STRU b/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/STRU new file mode 100644 index 00000000000..9c0edfc63a8 --- /dev/null +++ b/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/STRU @@ -0,0 +1,29 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf +O 1.000 O_ONCV_PBE-1.0.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb +8_O_gga_100Ry_7au_2s2p1d.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 mag 2.0 +0.50 0.50 0.50 mag -2.0 + +O +0.0 +2 +0.50 0.00 0.00 +0.00 0.50 0.50 diff --git a/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/result.ref b/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/result.ref new file mode 100644 index 00000000000..380a0b7b372 --- /dev/null +++ b/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/result.ref @@ -0,0 +1,3 @@ +etotref -7652.39578275317 +etotperatomref -1913.0989456883 +totaltimeref 2 \ No newline at end of file diff --git a/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/INPUT b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/INPUT new file mode 100644 index 00000000000..23afec5db2a --- /dev/null +++ b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/INPUT @@ -0,0 +1,33 @@ +INPUT_PARAMETERS +suffix autotest +calculation nscf +basis_type pw +ecutwfc 20 +gamma_only 0 +init_chg file +read_file_dir ./ +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 1 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +kpar 1 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/KPT b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/STRU b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/STRU new file mode 100644 index 00000000000..1ffecf17384 --- /dev/null +++ b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/result.ref b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/result.ref new file mode 100644 index 00000000000..fc63371aa3b --- /dev/null +++ b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6369.751780117049 +etotperatomref -3184.875890058524 +totaltimeref 2 diff --git a/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/INPUT b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/INPUT new file mode 100644 index 00000000000..5d58bf0c49a --- /dev/null +++ b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/INPUT @@ -0,0 +1,32 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 +init_chg atomic +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 1 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DeltaSpin parameters +sc_mag_switch 0 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +kpar 1 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/KPT b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/STRU b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/STRU new file mode 100644 index 00000000000..1ffecf17384 --- /dev/null +++ b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/scf/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/INPUT b/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/INPUT new file mode 100644 index 00000000000..417f4c65bdf --- /dev/null +++ b/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/INPUT @@ -0,0 +1,32 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DeltaSpin parameters - direction only mode +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 +sc_direction_only 1 + +kpar 1 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/KPT b/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/STRU b/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/STRU new file mode 100644 index 00000000000..1ffecf17384 --- /dev/null +++ b/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/result.ref b/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/result.ref new file mode 100644 index 00000000000..a834063a0df --- /dev/null +++ b/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6370.63216907371 +etotperatomref -3185.3160845369 +totaltimeref 4.94 diff --git a/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/INPUT b/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/INPUT new file mode 100644 index 00000000000..becbb440c6a --- /dev/null +++ b/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/INPUT @@ -0,0 +1,39 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 20 +gamma_only 0 + +noncolin 1 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters - direction only mode +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 +sc_direction_only 1 + +kpar 1 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB + +pw_seed 1 diff --git a/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/KPT b/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/STRU b/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/STRU new file mode 100644 index 00000000000..1ffecf17384 --- /dev/null +++ b/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/result.ref b/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/result.ref new file mode 100644 index 00000000000..8179ccd1a53 --- /dev/null +++ b/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6364.2658688980172883 +etotperatomref -3182.1329344490 +totaltimeref 5.72 diff --git a/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/INPUT b/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/INPUT new file mode 100644 index 00000000000..c66793eac2d --- /dev/null +++ b/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/INPUT @@ -0,0 +1,31 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 + +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 100 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DeltaSpin parameters - direction only mode +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-2 +sc_direction_only 1 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/KPT b/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/STRU b/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/STRU new file mode 100644 index 00000000000..17f53a6dcde --- /dev/null +++ b/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/result.ref b/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/result.ref new file mode 100644 index 00000000000..108efd3e98c --- /dev/null +++ b/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6777.833281398763 +etotperatomref -3388.9166406994 +totaltimeref 30.31 diff --git a/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/INPUT b/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/INPUT new file mode 100644 index 00000000000..81ea04ea848 --- /dev/null +++ b/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/INPUT @@ -0,0 +1,37 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 20 +gamma_only 0 + +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters - direction only mode +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 1e-3 +sc_direction_only 1 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/KPT b/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/STRU b/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/STRU new file mode 100644 index 00000000000..63c4d14399c --- /dev/null +++ b/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/result.ref b/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/result.ref new file mode 100644 index 00000000000..032eb7f214a --- /dev/null +++ b/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6366.562695032056 +etotperatomref -3183.2813475160 +totaltimeref 15.00 diff --git a/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/INPUT b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/INPUT new file mode 100644 index 00000000000..aa919b587d5 --- /dev/null +++ b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/INPUT @@ -0,0 +1,40 @@ +INPUT_PARAMETERS +suffix autotest +calculation nscf +basis_type pw +ecutwfc 10 +gamma_only 0 +init_chg file +read_file_dir ./ +noncolin 1 +nbands 40 +scf_thr 1.0e-6 +scf_nmax 1 +out_chg 0 +out_band 1 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +kpar 1 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/KPT b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/STRU b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/STRU new file mode 100644 index 00000000000..1ffecf17384 --- /dev/null +++ b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/band.txt.ref b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/band.txt.ref new file mode 100644 index 00000000000..3c1e0edcc6b --- /dev/null +++ b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/band.txt.ref @@ -0,0 +1,4 @@ + 1 0.00000000 -118.74659335 -118.74105316 -117.71243266 -117.71010697 -60.43942922 -60.43198848 -59.24890926 -59.24855148 -59.24621462 -59.24613546 -58.51271748 -58.50555152 -56.29487791 -56.29481572 -56.29287034 -56.29258877 2.64311620 2.64973398 5.67083421 5.67480330 9.99068874 10.00294181 10.18234765 10.18239223 10.18678632 10.18683943 10.24485869 10.24491226 10.24950719 10.24957186 11.34253572 11.35559667 13.07230231 13.07234186 13.07368595 13.07377607 13.58972453 13.58976572 13.59991270 13.60001804 + 2 0.82915620 -118.80368460 -118.79809980 -117.78944153 -117.78708036 -62.05046219 -62.04806635 -60.99915730 -60.99736002 -60.04357408 -60.04053523 -59.52262037 -59.51990186 -58.70518485 -58.70103313 -58.67371124 -58.67288114 6.45311232 6.45926062 7.48320213 7.49000622 8.79761027 8.80043858 9.56020356 9.56551933 9.72542883 9.73498425 9.95285811 9.95607541 10.54676401 10.55014375 10.86623027 10.87447067 11.30366212 11.31071686 12.83052430 12.83751385 12.90110713 12.90426321 13.11638182 13.12544514 + 3 2.24336976 -118.80368557 -118.79809951 -117.78944186 -117.78707950 -62.05008134 -62.04820681 -60.99956034 -60.99721634 -60.04352720 -60.04067929 -59.52259954 -59.52009612 -58.70517255 -58.70103915 -58.67376328 -58.67253821 6.45284517 6.45938177 7.48308029 7.49012123 8.79754168 8.80064706 9.56020632 9.56547628 9.72526202 9.73499741 9.95290081 9.95603601 10.54660460 10.55060293 10.86652043 10.87441346 11.30386626 11.31086260 12.83094329 12.83650890 12.90109634 12.90430775 13.11643926 13.12540010 + 4 3.65758332 -118.80368458 -118.79809967 -117.78944166 -117.78708048 -62.05040961 -62.04811733 -60.99922575 -60.99730699 -60.04353542 -60.04055074 -59.52257959 -59.51993402 -58.70519462 -58.70104660 -58.67372710 -58.67285963 6.45311497 6.45926327 7.48315175 7.49007185 8.79740942 8.80050481 9.56022290 9.56550773 9.72549108 9.73513556 9.95287148 9.95604062 10.54670755 10.55025149 10.86628870 10.87433312 11.30364117 11.31061114 12.83069521 12.83750463 12.90111654 12.90429728 13.11641208 13.12538266 diff --git a/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/result.ref b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/result.ref new file mode 100644 index 00000000000..ff360e3c3e1 --- /dev/null +++ b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/result.ref @@ -0,0 +1,4 @@ +etotref -6368.988301997129 +etotperatomref -3184.494150998564 +CompareBand_pass 0 +totaltimeref 1 diff --git a/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/INPUT b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/INPUT new file mode 100644 index 00000000000..c1436937b8e --- /dev/null +++ b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/INPUT @@ -0,0 +1,38 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 10 +gamma_only 0 +init_chg atomic +noncolin 1 +nbands 40 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 1 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters +sc_mag_switch 0 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +kpar 1 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/KPT b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/STRU b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/STRU new file mode 100644 index 00000000000..1ffecf17384 --- /dev/null +++ b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/scf/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/INPUT b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/INPUT new file mode 100644 index 00000000000..deb30c6d17b --- /dev/null +++ b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/INPUT @@ -0,0 +1,31 @@ +INPUT_PARAMETERS +suffix autotest +calculation nscf +basis_type lcao +ecutwfc 5 +gamma_only 0 +init_chg file +read_file_dir ./ +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 1 +out_chg 0 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/KPT b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/STRU b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/STRU new file mode 100644 index 00000000000..17f53a6dcde --- /dev/null +++ b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/result.ref b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/result.ref new file mode 100644 index 00000000000..95b35a92c67 --- /dev/null +++ b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/result.ref @@ -0,0 +1,3 @@ +etotref -6777.389070306773 +etotperatomref -3388.6945351534 +totaltimeref 0.38 diff --git a/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/INPUT b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/INPUT new file mode 100644 index 00000000000..74a291898f5 --- /dev/null +++ b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/INPUT @@ -0,0 +1,30 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 5 +gamma_only 0 +init_chg atomic +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 1 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DeltaSpin parameters +sc_mag_switch 0 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/KPT b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/STRU b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/STRU new file mode 100644 index 00000000000..17f53a6dcde --- /dev/null +++ b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/scf/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/INPUT b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/INPUT new file mode 100644 index 00000000000..930f1f58c9e --- /dev/null +++ b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/INPUT @@ -0,0 +1,29 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 5 +gamma_only 0 +init_chg file +read_file_dir ./ +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 1 +#out_chg 1 +out_band 1 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver scalapack_gvx #genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/KPT b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/STRU b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/STRU new file mode 100644 index 00000000000..63c4d14399c --- /dev/null +++ b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/band.txt.ref b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/band.txt.ref new file mode 100644 index 00000000000..766c6af2f2f --- /dev/null +++ b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/band.txt.ref @@ -0,0 +1,4 @@ + 1 0.00000000 -81.35798613 -80.91162162 -77.87936703 -76.74784146 -48.21252989 -48.05180379 -47.11309954 -46.84624262 -45.99559708 -45.16174878 -44.25253962 -43.80961217 -43.32862796 -42.90421318 -42.51977044 -41.41638129 3.16867028 3.79557125 5.13494797 6.15577863 6.82828647 7.21801664 7.31150311 7.82216709 8.56222439 9.61800696 10.07332581 10.82198572 11.58689426 11.83812833 13.07342263 13.47914134 13.79924038 14.15748878 14.80880459 15.92888769 16.24301547 16.95879333 17.97629169 18.31838815 21.96927100 22.22937015 28.39211767 28.58909741 29.18199554 29.39709073 31.68650488 32.21255741 35.79893828 35.81979282 35.92295112 35.96563548 + 2 0.82915620 -81.10175627 -80.77324879 -77.62066318 -76.50645981 -48.77161167 -48.39941899 -48.01019247 -46.86510462 -46.57884280 -45.80018866 -44.06569224 -43.75791263 -43.09085467 -43.00922971 -41.90296097 -41.04758175 4.17006871 6.45579334 6.75816005 7.00768474 7.72582662 8.00853728 8.78685699 9.32009401 10.33266285 11.00473180 11.51204593 12.08031313 12.47631514 13.13935058 13.29522017 13.95792499 14.67217865 15.09735944 15.56928179 15.69679392 16.42789318 16.94993037 17.86411673 18.47145732 19.07698954 19.57788780 20.84435638 21.44693718 26.72714588 26.81209594 27.54363188 27.69151703 28.78218337 28.90236528 30.51378938 30.86720034 + 3 2.24336976 -81.81699214 -80.54300518 -78.16305079 -77.20106209 -49.17072128 -48.08020252 -47.60325656 -46.97267382 -45.84042501 -44.61889305 -43.85491252 -43.61774835 -43.16511756 -42.70935290 -42.38341026 -40.76879517 4.95741057 5.88906775 6.65766124 7.56916634 7.83189331 8.57746390 8.96955931 9.78306171 9.96996693 10.35343686 10.97546003 11.51761850 11.98974426 12.88830307 13.65557399 14.24765814 14.60487727 15.36245775 15.58947737 15.95114711 16.30844135 16.64852852 16.95966354 18.11732802 19.14383346 20.13884583 20.70359105 21.88059524 26.76868015 26.79258365 27.54297052 27.77900288 28.70454341 28.92890934 30.42018770 30.69387544 + 4 3.65758332 -81.81458357 -81.14041892 -77.46430087 -76.43986474 -48.54400095 -47.92984324 -47.70697073 -46.88389045 -46.05858194 -45.66647428 -43.99876504 -43.59683565 -43.15413976 -42.74725551 -42.27280545 -41.15469194 4.57328963 5.85587322 6.12395867 6.42651552 7.75146214 8.36714964 9.25467150 9.44556575 10.23255055 10.98354817 11.30357410 12.27001965 12.58833679 12.90746140 13.51369963 14.32839481 14.59049563 15.15343925 15.38851078 16.75044481 17.14681328 17.28677792 17.69380906 18.53898402 19.01591604 19.55929412 20.70329144 20.90676766 26.78639508 26.87324153 27.40984114 27.56127188 28.59165313 28.97716410 30.46267093 30.71056343 diff --git a/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/result.ref b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/result.ref new file mode 100644 index 00000000000..91669bb898c --- /dev/null +++ b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/result.ref @@ -0,0 +1,4 @@ +etotref -6765.43001420612 +etotperatomref -3382.71500710306 +CompareBand_pass 0 +totaltimeref 1 diff --git a/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/INPUT b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/INPUT new file mode 100644 index 00000000000..7d80334dbdb --- /dev/null +++ b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/INPUT @@ -0,0 +1,27 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 5 +gamma_only 0 +init_chg atomic +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +#out_chg 1 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver scalapack_gvx #genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/KPT b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/STRU b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/STRU new file mode 100644 index 00000000000..63c4d14399c --- /dev/null +++ b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/scf/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/INPUT b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/INPUT new file mode 100644 index 00000000000..22c74074638 --- /dev/null +++ b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/INPUT @@ -0,0 +1,38 @@ +INPUT_PARAMETERS +suffix autotest +calculation nscf +basis_type lcao +ecutwfc 5 +gamma_only 0 +init_chg file +read_file_dir ./ +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 1 +out_chg 0 +out_band 1 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters +sc_mag_switch 1 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/KPT b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/STRU b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/STRU new file mode 100644 index 00000000000..17f53a6dcde --- /dev/null +++ b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/band.txt.ref b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/band.txt.ref new file mode 100644 index 00000000000..c082adc40b4 --- /dev/null +++ b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/band.txt.ref @@ -0,0 +1,4 @@ + 1 0.00000000 -81.35798613 -80.91162162 -77.87936703 -76.74784146 -48.21252989 -48.05180379 -47.11309954 -46.84624262 -45.99559708 -45.16174878 -44.25253962 -43.80961217 -43.32862796 -42.90421319 -42.51977044 -41.41638129 3.16867028 3.79557125 5.13494797 6.15577863 6.82828647 7.21801664 7.31150311 7.82216709 8.56222439 9.61800696 10.07332581 10.82198572 11.58689426 11.83812833 13.07342263 13.47914134 13.79924038 14.15748878 14.80880459 15.92888769 16.24301547 16.95879333 17.97629169 18.31838815 21.96927100 22.22937015 28.39211767 28.58909741 29.18199554 29.39709073 31.68650488 32.21255741 35.79893828 35.81979282 35.92295112 35.96563548 + 2 0.82915620 -81.10175627 -80.77324879 -77.62066318 -76.50645981 -48.77161167 -48.39941899 -48.01019247 -46.86510462 -46.57884280 -45.80018866 -44.06569224 -43.75791263 -43.09085467 -43.00922971 -41.90296097 -41.04758175 4.17006871 6.45579334 6.75816005 7.00768474 7.72582662 8.00853728 8.78685699 9.32009401 10.33266285 11.00473180 11.51204593 12.08031313 12.47631514 13.13935058 13.29522017 13.95792499 14.67217865 15.09735944 15.56928179 15.69679392 16.42789318 16.94993037 17.86411673 18.47145732 19.07698954 19.57788780 20.84435638 21.44693718 26.72714588 26.81209594 27.54363188 27.69151703 28.78218337 28.90236528 30.51378938 30.86720034 + 3 2.24336976 -81.81699214 -80.54300518 -78.16305079 -77.20106209 -49.17072128 -48.08020252 -47.60325656 -46.97267382 -45.84042501 -44.61889305 -43.85491252 -43.61774835 -43.16511756 -42.70935290 -42.38341026 -40.76879517 4.95741057 5.88906775 6.65766124 7.56916634 7.83189331 8.57746390 8.96955931 9.78306171 9.96996693 10.35343686 10.97546003 11.51761850 11.98974426 12.88830307 13.65557399 14.24765814 14.60487727 15.36245775 15.58947737 15.95114711 16.30844135 16.64852852 16.95966354 18.11732802 19.14383346 20.13884583 20.70359105 21.88059524 26.76868015 26.79258365 27.54297052 27.77900288 28.70454341 28.92890934 30.42018770 30.69387544 + 4 3.65758332 -81.81458357 -81.14041892 -77.46430087 -76.43986474 -48.54400095 -47.92984324 -47.70697073 -46.88389045 -46.05858194 -45.66647428 -43.99876504 -43.59683565 -43.15413976 -42.74725551 -42.27280545 -41.15469194 4.57328963 5.85587322 6.12395867 6.42651552 7.75146214 8.36714964 9.25467150 9.44556575 10.23255055 10.98354817 11.30357410 12.27001965 12.58833679 12.90746140 13.51369963 14.32839481 14.59049563 15.15343925 15.38851078 16.75044481 17.14681328 17.28677792 17.69380906 18.53898402 19.01591604 19.55929412 20.70329144 20.90676766 26.78639508 26.87324153 27.40984114 27.56127188 28.59165313 28.97716410 30.46267093 30.71056343 diff --git a/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/result.ref b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/result.ref new file mode 100644 index 00000000000..71ab30dfc69 --- /dev/null +++ b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/result.ref @@ -0,0 +1,4 @@ +etotref -6765.43001420620 +etotperatomref -3382.71500710310 +CompareBand_pass 0 +totaltimeref 2 diff --git a/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/INPUT b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/INPUT new file mode 100644 index 00000000000..756cf0b898b --- /dev/null +++ b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/INPUT @@ -0,0 +1,36 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type lcao +ecutwfc 5 +gamma_only 0 +init_chg atomic +noncolin 1 +#nbands 28 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 1 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver genelpa +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +# DeltaSpin parameters +sc_mag_switch 0 +sc_thr 1e-4 +nsc 100 +nsc_min 2 +alpha_trial 0.01 +sccut 3.0 +sc_scf_thr 10 + +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB diff --git a/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/KPT b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/STRU b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/STRU new file mode 100644 index 00000000000..17f53a6dcde --- /dev/null +++ b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/scf/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 sc 1 1 1 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 sc 1 1 1 diff --git a/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/INPUT b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/INPUT new file mode 100644 index 00000000000..f048ee6419d --- /dev/null +++ b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/INPUT @@ -0,0 +1,31 @@ +INPUT_PARAMETERS +suffix autotest +calculation nscf +basis_type pw +ecutwfc 10 +gamma_only 0 +init_chg file +read_file_dir ./ +noncolin 1 +#nbands 40 +scf_thr 1.0e-6 +scf_nmax 1 +out_chg 0 +out_band 1 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +kpar 1 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/KPT b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/STRU b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/STRU new file mode 100644 index 00000000000..63c4d14399c --- /dev/null +++ b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/band.txt.ref b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/band.txt.ref new file mode 100644 index 00000000000..1ee8a962066 --- /dev/null +++ b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/band.txt.ref @@ -0,0 +1,4 @@ + 1 0.00000000 -118.74659335 -118.74105316 -117.71243266 -117.71010697 -60.43942922 -60.43198848 -59.24890926 -59.24855148 -59.24621462 -59.24613546 -58.51271748 -58.50555152 -56.29487791 -56.29481572 -56.29287034 -56.29258877 2.64311620 2.64973398 5.67083421 5.67480330 9.99068874 10.00294181 10.18234765 10.18239223 10.18678632 10.18683943 10.24485869 10.24491226 10.24950719 10.24957186 11.34253572 11.35559667 13.07230230 13.07234185 13.07368595 13.07377607 13.58972452 13.58976572 13.59991270 13.60001804 15.99826102 16.01361492 24.70650406 24.71753854 26.78032503 26.78045088 26.78898059 26.78905531 27.27406290 27.27939518 28.35680183 28.36332491 + 2 0.82915620 -118.80368460 -118.79809980 -117.78944153 -117.78708036 -62.05046219 -62.04806635 -60.99915730 -60.99736002 -60.04357408 -60.04053523 -59.52262037 -59.51990186 -58.70518485 -58.70103313 -58.67371124 -58.67288114 6.45311232 6.45926062 7.48320213 7.49000622 8.79761027 8.80043858 9.56020356 9.56551933 9.72542883 9.73498425 9.95285811 9.95607541 10.54676401 10.55014375 10.86623027 10.87447067 11.30366212 11.31071686 12.83052430 12.83751385 12.90110713 12.90426321 13.11638182 13.12544514 13.56207446 13.56742663 14.90063350 14.90600675 19.75546671 19.76418912 20.88342278 20.89209525 23.98781051 23.99591683 24.93117047 24.93542760 + 3 2.24336976 -118.80368557 -118.79809951 -117.78944186 -117.78707950 -62.05008134 -62.04820681 -60.99956034 -60.99721634 -60.04352720 -60.04067929 -59.52259954 -59.52009612 -58.70517255 -58.70103915 -58.67376328 -58.67253821 6.45284517 6.45938177 7.48308029 7.49012123 8.79754168 8.80064706 9.56020632 9.56547628 9.72526202 9.73499741 9.95290081 9.95603601 10.54660460 10.55060293 10.86652043 10.87441346 11.30386626 11.31086260 12.83094329 12.83650890 12.90109634 12.90430775 13.11643926 13.12540010 13.56232485 13.56698530 14.90069606 14.90592441 19.75546654 19.76418322 20.88340848 20.89209970 23.98781915 23.99591767 24.93114743 24.93544303 + 4 3.65758332 -118.80368458 -118.79809967 -117.78944166 -117.78708048 -62.05040961 -62.04811733 -60.99922575 -60.99730699 -60.04353542 -60.04055074 -59.52257959 -59.51993402 -58.70519462 -58.70104660 -58.67372710 -58.67285963 6.45311497 6.45926327 7.48315175 7.49007185 8.79740942 8.80050481 9.56022290 9.56550773 9.72549108 9.73513556 9.95287148 9.95604062 10.54670755 10.55025149 10.86628870 10.87433312 11.30364117 11.31061114 12.83069521 12.83750463 12.90111654 12.90429728 13.11641208 13.12538266 13.56209366 13.56729875 14.90066332 14.90597275 19.75549522 19.76417346 20.88344461 20.89207078 23.98776890 23.99594464 24.93117319 24.93542294 diff --git a/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/result.ref b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/result.ref new file mode 100644 index 00000000000..ad9ce9eeb7a --- /dev/null +++ b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/result.ref @@ -0,0 +1,4 @@ +etotref -6368.988302 +etotperatomref -3184.494151 +CompareBand_pass 0 +totaltimeref 2 diff --git a/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/INPUT b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/INPUT new file mode 100644 index 00000000000..f963181d332 --- /dev/null +++ b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/INPUT @@ -0,0 +1,29 @@ +INPUT_PARAMETERS +suffix autotest +calculation scf +basis_type pw +ecutwfc 10 +gamma_only 0 +init_chg atomic +noncolin 1 +#nbands 40 +scf_thr 1.0e-6 +scf_nmax 50 +out_chg 1 +smearing_method gaussian +smearing_sigma 0.01 +mixing_type broyden +mixing_beta 0.4 +ks_solver dav_subspace +symmetry 0 + +# DFT+U parameters +dft_plus_u 1 +orbital_corr 2 +hubbard_u 5.0 +onsite_radius 3.0 + +kpar 1 +pseudo_dir ../../PP_ORB +orbital_dir ../../PP_ORB +pw_seed 1 diff --git a/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/KPT b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/KPT new file mode 100644 index 00000000000..35597cecff1 --- /dev/null +++ b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/KPT @@ -0,0 +1,4 @@ +K_POINTS +0 +Monkhorst-Pack +2 2 2 0 0 0 diff --git a/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/STRU b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/STRU new file mode 100644 index 00000000000..63c4d14399c --- /dev/null +++ b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/scf/STRU @@ -0,0 +1,21 @@ +ATOMIC_SPECIES +Fe 1.000 Fe.upf + +NUMERICAL_ORBITAL +Fe_gga_6au_100Ry_4s2p2d1f.orb + +LATTICE_CONSTANT +8.190 + +LATTICE_VECTORS + 1.00 0.50 0.50 + 0.50 1.00 0.50 + 0.50 0.50 1.00 +ATOMIC_POSITIONS +Direct + +Fe +0.0 +2 +0.00 0.00 0.00 magmom 2.0 0.0 0.0 +0.51 0.51 0.51 magmom -2.0 0.0 0.0 diff --git a/tests/17_DS_DFTU/CASES_CPU.txt b/tests/17_DS_DFTU/CASES_CPU.txt new file mode 100644 index 00000000000..aedc2ee8c7f --- /dev/null +++ b/tests/17_DS_DFTU/CASES_CPU.txt @@ -0,0 +1,62 @@ +# LCAO baseline tests +01_LCAO_SPIN_S2_Z +# 02_LCAO_SPIN_S4_XYZ +03_LCAO_DFTU_S2_Z +# 04_LCAO_DFTU_S4_XY +# 05_LCAO_DFTU_S4_XYZ +# PW baseline tests +06_PW_SPIN_S2_Z +07_PW_SPIN_S4_XYZ +08_PW_DFTU_S2_Z +09_PW_DFTU_S4_XY +11_PW_DFTU_S2_FeO +# PW pure DeltaSpin +12_PW_DS_S2_Z +14_PW_DS_S4_XYZ +15_PW_DS_S4_Z +16_PW_DS_S4_XY +# PW DFT+U + DeltaSpin +18_PW_DFTU_DS_S2_Z +19_PW_DFTU_DS_S4_XY +21_PW_DFTU_DS_S4_Z +# LCAO pure DeltaSpin +# 24_LCAO_DS_S2_Z +# 26_LCAO_DS_S4_XYZ +# 27_LCAO_DS_S4_Z +# 28_LCAO_DS_S4_XY +# LCAO DFT+U + DeltaSpin +# 30_LCAO_DFTU_DS_S2_Z +# 31_LCAO_DFTU_DS_S4_XY +# 32_LCAO_DFTU_DS_S4_XYZ +# 33_LCAO_DFTU_DS_S4_Z +# ReadLam mode (nsc=1, load pre-computed lambda) +36_PW_DS_S2_ReadLam_Z +37_PW_DS_S4_ReadLam_XY +# Lambda loop behavior: thr1e-10 = no lambda loop, load from STRU +38_PW_DS_S2_Thr1e10_Z +39_PW_DS_S4_Thr1e10_XY +42_PW_DFTU_DS_S2_Thr1e10_Z +43_PW_DFTU_DS_S4_Thr1e10_XY +# Lambda loop behavior: thr10 = immediate lambda loop +40_PW_DS_S2_Thr10_Z +41_PW_DS_S4_Thr10_XY +# 44_PW_DFTU_DS_S2_Thr10_Z +45_PW_DFTU_DS_S4_Thr10_XY +# FeO multi-element DFT+U +50_FeO_O_first_Fe_second +51_FeO_Fe_first_O_second +# NSCF (non-self-consistent) tests +# DISABLED: These tests now use SCF+NSCF workflow (run_scf_nscf.sh) +# and require running SCF first to generate charge density files. +# Run manually with: bash run_scf_nscf.sh [mpi_np] +# # 55_PW_DS_NSCF_S4_XY +# # 60_PW_DFTU_DS_NSCF_Band_XY +# # 61_LCAO_DS_NSCF_S4_XY +# # 62_LCAO_DFTU_NSCF_Band_XY +# # 63_LCAO_DFTU_DS_NSCF_Band_XY +# # 64_PW_DFTU_NSCF_Band_XY +# DirectionOnly mode (constrain direction, not magnitude) +56_PW_DS_S4_DirectionOnly_XY +57_PW_DFTU_DS_S4_DirectionOnly_XY +# 58_LCAO_DS_S4_DirectionOnly_XY +# 59_LCAO_DFTU_DS_S4_DirectionOnly_XY diff --git a/tests/17_DS_DFTU/CMakeLists.txt b/tests/17_DS_DFTU/CMakeLists.txt new file mode 100644 index 00000000000..7c78260e772 --- /dev/null +++ b/tests/17_DS_DFTU/CMakeLists.txt @@ -0,0 +1,16 @@ +enable_testing() + +find_program(BASH bash) +if(ENABLE_ASAN) + add_test( + NAME 17_DS_DFTU_test_with_asan + COMMAND ${BASH} ../integrate/Autotest.sh -a ${ABACUS_BIN_PATH} -n 2 -s true + WORKING_DIRECTORY ${ABACUS_TEST_DIR}/17_DS_DFTU + ) +else() + add_test( + NAME 17_DS_DFTU + COMMAND ${BASH} ../integrate/Autotest.sh -a ${ABACUS_BIN_PATH} -n 4 + WORKING_DIRECTORY ${ABACUS_TEST_DIR}/17_DS_DFTU + ) +endif() diff --git a/tests/17_DS_DFTU/README.md b/tests/17_DS_DFTU/README.md new file mode 100644 index 00000000000..c9a6e6a7abf --- /dev/null +++ b/tests/17_DS_DFTU/README.md @@ -0,0 +1,184 @@ +# 17_DS_DFTU — DeltaSpin & DFT+U Integration Test Suite + +This directory contains integration test cases for **DeltaSpin (spin-constrained DFT)** and **DFT+U** functionality in ABACUS, +covering LCAO and PW basis sets, collinear/noncollinear spin, DFT+U, DeltaSpin, and their combinations. + +## Test List (47 cases) + +### I. LCAO Spin (01-02) + +| # | Test Case | Description | +|---|------|------| +| 01 | LCAO_SPIN_S2_Z | Verify basic SCF convergence of collinear spin with LCAO basis, serves as baseline for LCAO magnetic calculations | +| 02 | LCAO_SPIN_S4_XYZ | Verify basic SCF convergence of noncollinear spin with LCAO basis, covers LCAO noncollinear calculation path | + +### II. LCAO DFT+U (03-05) + +| # | Test Case | Description | +|---|------|------| +| 03 | LCAO_DFTU_S2_Z | Verify coupling of DFT+U (U=5.0eV, l=2) with collinear spin in LCAO basis, ensures correct DFT+U occupation matrix calculation in LCAO path | +| 04 | LCAO_DFTU_S4_XY | Verify coupling of DFT+U with noncollinear spin (XY magnetization) in LCAO basis, covers nspin=4 occupation matrix calculation in LCAO path | +| 05 | LCAO_DFTU_S4_XYZ | Verify coupling of DFT+U with noncollinear spin (XYZ magnetization) in LCAO basis, covers the most complete occupation matrix scenario in LCAO path | + +### III. PW Spin (06-07) + +| # | Test Case | Description | +|---|------|------| +| 06 | PW_SPIN_S2_Z | Verify basic SCF convergence of collinear spin with PW basis, serves as baseline for PW magnetic calculations | +| 07 | PW_SPIN_S4_XYZ | Verify basic SCF convergence of noncollinear spin with PW basis, covers PW noncollinear calculation path | + +### IV. PW DFT+U (08-09, 11) + +| # | Test Case | Description | +|---|------|------| +| 08 | PW_DFTU_S2_Z | Verify coupling of DFT+U (U=5.0eV, l=2) with collinear spin in PW basis, ensures correct DFT+U effective potential calculation in PW path | +| 09 | PW_DFTU_S4_XY | Verify coupling of DFT+U with noncollinear spin (XY magnetization) in PW basis, covers onsite projection matrix for nspin=4 in PW path | +| 11 | PW_DFTU_S2_FeO | Verify correctness of DFT+U on FeO system with PW basis, ensures DFT+U correction for Fe-3d orbitals is effective | + +### V. PW DeltaSpin (12, 14-16) + +| # | Test Case | Description | +|---|------|------| +| 12 | PW_DS_S2_Z | Verify coupling of DeltaSpin with collinear spin in PW basis, ensures correct DeltaSpin iterative optimization of magnetization to target values | +| 14 | PW_DS_S4_XYZ | Verify iterative optimization of noncollinear DeltaSpin under XYZ three-direction magnetization constraint, covers the most complete spin constraint scenario | +| 15 | PW_DS_S4_Z | Verify behavior of noncollinear DeltaSpin when constraining only Z-direction magnetization, ensures uniaxial constraint does not introduce unphysical XY components in noncolin=1 framework | +| 16 | PW_DS_S4_XY | Verify iterative optimization of noncollinear DeltaSpin under XY magnetization constraint with a different crystal structure, verifies generalization of noncollinear DeltaSpin XY constraint under different lattices | + +### VI. PW DFT+U + DeltaSpin (18-19, 21) + +| # | Test Case | Description | +|---|------|------| +| 18 | PW_DFTU_DS_S2_Z | Verify coupling of DFT+U with DeltaSpin combined (collinear spin) in PW basis, ensures U correction and magnetization constraint do not conflict | +| 19 | PW_DFTU_DS_S4_XY | Verify coupling of noncollinear DFT+U+DeltaSpin combined under XY magnetization constraint, covers joint iteration of both methods in nspin=4 path | +| 21 | PW_DFTU_DS_S4_Z | Verify behavior of noncollinear DFT+U+DeltaSpin combined when constraining only Z-direction magnetization, ensures correct superposition of uniaxial constraint with DFT+U effective potential | + +### VII. LCAO DeltaSpin (24, 26-28) + +| # | Test Case | Description | +|---|------|------| +| 24 | LCAO_DS_S2_Z | Verify coupling of DeltaSpin with collinear spin in LCAO basis, ensures correct spin constraint optimization in LCAO density matrix path | +| 26 | LCAO_DS_S4_XYZ | Verify iterative optimization of noncollinear DeltaSpin under XYZ three-direction magnetization constraint in LCAO basis, covers the most complete constraint scenario in LCAO path | +| 27 | LCAO_DS_S4_Z | Verify behavior of noncollinear DeltaSpin when constraining only Z-direction magnetization in LCAO basis, ensures correctness of uniaxial constraint in noncolin=1 framework | +| 28 | LCAO_DS_S4_XY | Verify iterative optimization of noncollinear DeltaSpin under XY magnetization constraint in LCAO basis with a different crystal structure, verifies generalization of LCAO noncollinear DeltaSpin XY constraint under different lattices | + +### VIII. LCAO DFT+U + DeltaSpin (30-33) + +| # | Test Case | Description | +|---|------|------| +| 30 | LCAO_DFTU_DS_S2_Z | Verify coupling of DFT+U with DeltaSpin combined (collinear spin) in LCAO basis, ensures U correction and magnetization constraint do not conflict in density matrix path | +| 31 | LCAO_DFTU_DS_S4_XY | Verify coupling of noncollinear DFT+U+DeltaSpin combined under XY magnetization constraint in LCAO basis, covers joint constraint in LCAO density matrix path | +| 32 | LCAO_DFTU_DS_S4_XYZ | Verify coupling of noncollinear DFT+U+DeltaSpin combined under XYZ three-direction magnetization constraint in LCAO basis, covers the most complete joint scenario in LCAO path | +| 33 | LCAO_DFTU_DS_S4_Z | Verify behavior of noncollinear DFT+U+DeltaSpin combined when constraining only Z-direction magnetization in LCAO basis, ensures correct superposition of uniaxial constraint with DFT+U density matrix | + +### IX. PW DeltaSpin Special Parameters (36-41) + +| # | Test Case | Description | +|---|------|------| +| 36 | PW_DS_S2_ReadLam_Z | Verify correctness of `nsc=1` mode (read lambda file directly without iterative optimization), ensures DeltaSpin correctly computes magnetization in non-self-consistent lambda mode | +| 37 | PW_DS_S4_ReadLam_XY | Verify `nsc=1` mode for noncollinear DeltaSpin, covers non-self-consistent lambda path under XY magnetization constraint | +| 38 | PW_DS_S2_Thr1e10_Z | Verify stability of DeltaSpin under strict convergence threshold (sc_scf_thr=1e-10), ensures iterative optimization converges to high-precision solution | +| 39 | PW_DS_S4_Thr1e10_XY | Verify stability of noncollinear DeltaSpin under strict convergence threshold (sc_scf_thr=1e-10), covers XY magnetization constraint scenario | +| 40 | PW_DS_S2_Thr10_Z | Verify behavior of DeltaSpin under loose convergence threshold (sc_scf_thr=10), tests algorithm robustness and out_alllog log output under low precision requirements | +| 41 | PW_DS_S4_Thr10_XY | Verify behavior of noncollinear DeltaSpin under loose convergence threshold (sc_scf_thr=10), covers low precision scenario with XY magnetization constraint | + +### X. PW DFT+U + DeltaSpin Special Parameters (42-45) + +| # | Test Case | Description | +|---|------|------| +| 42 | PW_DFTU_DS_S2_Thr1e10_Z | Verify iterative stability of DFT+U with DeltaSpin combined under strict convergence threshold (sc_scf_thr=1e-10), ensures convergence when both methods are coupled | +| 43 | PW_DFTU_DS_S4_Thr1e10_XY | Verify coupling stability of noncollinear DFT+U+DeltaSpin under strict convergence threshold (sc_scf_thr=1e-10), covers XY magnetization constraint | +| 44 | PW_DFTU_DS_S2_Thr10_Z | Verify behavior of DFT+U with DeltaSpin combined under loose convergence threshold (sc_scf_thr=10), tests coupled algorithm robustness under low precision requirements | +| 45 | PW_DFTU_DS_S4_Thr10_XY | Verify behavior of noncollinear DFT+U+DeltaSpin under loose convergence threshold (sc_scf_thr=10), covers low precision scenario with XY magnetization constraint | + +### XI. FeO Atom Ordering (50-51) + +| # | Test Case | Description | +|---|------|------| +| 50 | FeO_O_first_Fe_second | Verify correctness of DFT+U in FeO system with O atom type first and Fe second, ensures atom type ordering does not affect DFT+U onsite projection | +| 51 | FeO_Fe_first_O_second | Verify correctness of DFT+U in FeO system with Fe atom type first and O second, compare with 50 to ensure eff_pot_pw_index indexing is independent of atom type ordering | + +### XII. NSCF Mode (55, 60-64) + +**Note:** These test cases have been converted to use a **SCF+NSCF workflow**. +The pre-converged charge density files have been removed. To run these tests: + +```bash +# Use the workflow script (runs SCF first, then NSCF) +cd tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY +bash ../run_scf_nscf.sh 4 +``` + +| # | Test Case | Description | +|---|------|------| +| 55 | PW_DS_NSCF_S4_XY | Verify DeltaSpin functionality in non-self-consistent (nscf) calculation mode, ensures lambda constraint is applied correctly without charge update | +| 60 | PW_DFTU_DS_NSCF_Band_XY | Verify DFT+U+DeltaSpin in NSCF band structure calculation, tests band output with spin constraints on high-symmetry k-point path | +| 61 | LCAO_DS_NSCF_S4_XY | Verify LCAO DeltaSpin functionality in nscf calculation mode | +| 62 | LCAO_DFTU_NSCF_Band_XY | Verify LCAO DFT+U (without DeltaSpin) in NSCF band structure calculation; note: runs as `calculation = scf` with `scf_nmax = 1` using pre-converged charge density | +| 63 | LCAO_DFTU_DS_NSCF_Band_XY | Verify LCAO DFT+U+DeltaSpin in NSCF band structure calculation, tests band output with spin constraints | +| 64 | PW_DFTU_NSCF_Band_XY | Verify DFT+U (without DeltaSpin) in NSCF band structure calculation, tests band output with Hubbard U correction | + +**SCF+NSCF Workflow:** +1. `scf/INPUT` — SCF input (calculation=scf, init_chg=atomic, out_chg=1) +2. `scf/STRU`, `scf/KPT` — SCF structure and k-points +3. `run_scf_nscf.sh` — Script that runs SCF, copies charge density, then runs NSCF +4. CI tests are **disabled** for these cases (see CASES_CPU.txt) + +### XIII. sc_direction_only Constraint (56-59) + +| # | Test Case | Description | +|---|------|------| +| 56 | PW_DS_S4_DirectionOnly_XY | Verify `sc_direction_only=1` mode: only magnetization direction is constrained while magnitude is free to relax, projects lambda perpendicular to target direction | +| 57 | PW_DFTU_DS_S4_DirectionOnly_XY | Verify `sc_direction_only=1` combined with DFT+U, tests direction-only constraint superposition with Hubbard U correction | +| 58 | LCAO_DS_S4_DirectionOnly_XY | Verify `sc_direction_only=1` in LCAO basis, ensures direction-only constraint works correctly in LCAO density matrix path | +| 59 | LCAO_DFTU_DS_S4_DirectionOnly_XY | Verify `sc_direction_only=1` combined with DFT+U in LCAO basis, tests full direction-only constraint in LCAO path | + +## Running Tests + +```bash +# Run all tests +cd tests/17_DS_DFTU +bash ../integrate/Autotest.sh -a -n 4 + +# Run a single test +cd 08_PW_DFTU_S2_Z +bash ../../integrate/run_debug.sh "" +``` + +## CI-Disabled Tests + +The following test cases are disabled in `CASES_CPU.txt` (commented out with `#`) and excluded from CI testing due to **convergence and numerical stability issues**. They can be manually unskipped for local testing by removing the `#` prefix. + +| # | Test Case | Reason | +|---|------|--------| +| 02 | LCAO_SPIN_S4_XYZ | Convergence / numerical stability | +| 04 | LCAO_DFTU_S4_XY | Convergence / numerical stability | +| 05 | LCAO_DFTU_S4_XYZ | Convergence / numerical stability | +| 24 | LCAO_DS_S2_Z | Convergence / numerical stability | +| 26 | LCAO_DS_S4_XYZ | Convergence / numerical stability | +| 27 | LCAO_DS_S4_Z | Convergence / numerical stability | +| 28 | LCAO_DS_S4_XY | Convergence / numerical stability | +| 30 | LCAO_DFTU_DS_S2_Z | Convergence / numerical stability | +| 31 | LCAO_DFTU_DS_S4_XY | Convergence / numerical stability | +| 32 | LCAO_DFTU_DS_S4_XYZ | Convergence / numerical stability | +| 33 | LCAO_DFTU_DS_S4_Z | Convergence / numerical stability | +| 44 | PW_DFTU_DS_S2_Thr10_Z | Convergence / numerical stability | +| 58 | LCAO_DS_S4_DirectionOnly_XY | Convergence / numerical stability | +| 59 | LCAO_DFTU_DS_S4_DirectionOnly_XY | Convergence / numerical stability | +| 62 | LCAO_DFTU_NSCF_Band_XY | Convergence / numerical stability; genelpa eigenvalue inconsistency across thread counts (scalapack_gvx consistent); **also disabled for SCF+NSCF workflow conversion** | +| 63 | LCAO_DFTU_DS_NSCF_Band_XY | Convergence / numerical stability; **also disabled for SCF+NSCF workflow conversion** | +| 55 | PW_DS_NSCF_S4_XY | **Disabled for SCF+NSCF workflow conversion** — run manually with `run_scf_nscf.sh` | +| 60 | PW_DFTU_DS_NSCF_Band_XY | **Disabled for SCF+NSCF workflow conversion** — run manually with `run_scf_nscf.sh` | +| 61 | LCAO_DS_NSCF_S4_XY | **Disabled for SCF+NSCF workflow conversion** — run manually with `run_scf_nscf.sh` | +| 64 | PW_DFTU_NSCF_Band_XY | **Disabled for SCF+NSCF workflow conversion** — run manually with `run_scf_nscf.sh` | + +## Test Condition Notes + +- 09 (PW DFT+U + noncollinear): Only supports **2-process MPI** execution, `result.ref` reference files provided +- The following test cases set `kpar=2` in INPUT and require at least **2 MPI processes** to run: 11, 12, 14, 15, 16, 18, 19, 21, 37, 39, 41, 43, 45 +- 62 (LCAO_DFTU_NSCF_Band_XY): Single-thread and multi-thread results are inconsistent; investigation shows HR, HK, and SK are consistent across threads, but eigenvalues from genelpa differ; switching to scalapack_gvx produces consistent results across thread counts. Note: this test is named "NSCF" but actually runs with `calculation = scf` (`scf_nmax = 1`), using pre-shipped charge density and onsite.dm files as initial guess +- All NSCF tests (55, 60, 61, 62, 63, 64) have been **converted to SCF+NSCF workflow**: + - Pre-converged `autotest-CHARGE-DENSITY.restart` and `onsite.dm` files have been removed + - Each test directory contains a `scf/` subdirectory with SCF input files + - Run with: `bash ../run_scf_nscf.sh [mpi_np]` + - These tests are **disabled in CI** (commented out in CASES_CPU.txt) +- All LCAO basis tests use `ks_solver = genelpa`. The genelpa eigenvalue inconsistency across thread counts observed in test 62 may potentially affect other LCAO tests as well \ No newline at end of file diff --git a/tests/17_DS_DFTU/run_scf_nscf.sh b/tests/17_DS_DFTU/run_scf_nscf.sh new file mode 100755 index 00000000000..03f44875ba8 --- /dev/null +++ b/tests/17_DS_DFTU/run_scf_nscf.sh @@ -0,0 +1,202 @@ +#!/bin/bash +# +# SCF + NSCF Workflow Script for ABACUS DeltaSpin/DFT+U tests +# +# Usage: +# bash run_scf_nscf.sh [mpi_np] +# +# This script: +# 1. Runs SCF calculation in scf/ subdirectory +# 2. Copies charge density (and onsite.dm for DFT+U) from SCF output +# 3. Runs NSCF calculation in current directory +# 4. Compares output with reference +# +# Directory structure: +# ./ +# ├── INPUT (NSCF input) +# ├── STRU +# ├── KPT +# ├── scf/ +# │ ├── INPUT (SCF input) +# │ ├── STRU (same as parent) +# │ └── KPT (SCF k-points, usually Gamma only) +# └── OUT.* (SCF output with charge density) +# + +set -e + +ABACUS="${1:-abacus}" +MPI_NP="${2:-4}" + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +TEST_DIR="$(pwd)" + +echo "========================================" +echo " SCF + NSCF Workflow" +echo "========================================" +echo "ABACUS: $ABACUS" +echo "MPI NP: $MPI_NP" +echo "Test dir: $TEST_DIR" +echo "========================================" + +# ------------------------------------------------------- +# Step 0: Check prerequisites +# ------------------------------------------------------- +if [ ! -f "${TEST_DIR}/INPUT" ]; then + echo "ERROR: INPUT file not found in ${TEST_DIR}" + exit 1 +fi + +if [ ! -f "${TEST_DIR}/STRU" ]; then + echo "ERROR: STRU file not found in ${TEST_DIR}" + exit 1 +fi + +# Check if this is a DFT+U test (needs onsite.dm handling) +IS_DFTU=false +if grep -q "dft_plus_u" "${TEST_DIR}/INPUT" 2>/dev/null; then + IS_DFTU=true + echo "DFT+U test detected: will handle onsite.dm files" +fi + +# ------------------------------------------------------- +# Step 1: Setup SCF subdirectory +# ------------------------------------------------------- +SCF_DIR="${TEST_DIR}/scf" +mkdir -p "${SCF_DIR}" + +# Copy STRU to SCF directory +cp "${TEST_DIR}/STRU" "${SCF_DIR}/STRU" + +# Copy KPT to SCF directory (if exists) +if [ -f "${TEST_DIR}/KPT" ]; then + cp "${TEST_DIR}/KPT" "${SCF_DIR}/KPT" +fi + +# Generate SCF INPUT from NSCF INPUT +# Key changes: calculation=scf, init_chg=atomic, remove nscf-specific params +SCF_INPUT="${SCF_DIR}/INPUT" +cat "${TEST_DIR}/INPUT" | sed \ + -e 's/calculation\s*nscf/calculation scf/' \ + -e 's/init_chg\s*file/init_chg atomic/' \ + -e '/read_file_dir/d' \ + -e '/out_band/d' \ + > "${SCF_INPUT}" + +echo "" +echo "--- SCF INPUT ---" +cat "${SCF_INPUT}" +echo "-----------------" + +# ------------------------------------------------------- +# Step 2: Run SCF calculation +# ------------------------------------------------------- +echo "" +echo "[1/4] Running SCF calculation..." +cd "${SCF_DIR}" +mpirun -np ${MPI_NP} --allow-run-as-root "${ABACUS}" > scf.log 2>&1 || { + echo "ERROR: SCF calculation failed!" + echo "Check ${SCF_DIR}/scf.log for details" + cd "${TEST_DIR}" + exit 1 +} +cd "${TEST_DIR}" + +# Get the suffix from SCF INPUT (default: OUT) +SCF_SUFFIX=$(grep "suffix" "${SCF_INPUT}" | awk '{print $2}') +SCF_SUFFIX=${SCF_SUFFIX:-OUT} +SCF_OUT="${SCF_DIR}/${SCF_SUFFIX}" + +# ------------------------------------------------------- +# Step 3: Copy charge density from SCF output +# ------------------------------------------------------- +echo "[2/4] Copying charge density files..." + +# NSCF suffix +NSCF_SUFFIX=$(grep "suffix" "${TEST_DIR}/INPUT" | awk '{print $2}') +NSCF_SUFFIX=${NSCF_SUFFIX:-OUT} + +# Find charge density file (pattern: *-CHARGE-DENSITY.restart or *-CHARGE-DENSITY) +CHG_FILE=$(find "${SCF_OUT}" -name "*CHARGE-DENSITY*" 2>/dev/null | head -1) +if [ -z "${CHG_FILE}" ]; then + echo "ERROR: No charge density file found in ${SCF_OUT}" + exit 1 +fi + +CHG_BASENAME=$(basename "${CHG_FILE}") +echo " Found: ${CHG_FILE}" + +# Determine the target filename based on NSCF suffix +NSCF_CHG_FILE="${NSCF_SUFFIX}-${CHG_BASENAME#*-}" +cp "${CHG_FILE}" "${TEST_DIR}/${NSCF_CHG_FILE}" +echo " Copied to: ${TEST_DIR}/${NSCF_CHG_FILE}" + +# For DFT+U tests, also copy onsite.dm if it exists +if [ "${IS_DFTU}" = true ]; then + ONSITE_FILE=$(find "${SCF_OUT}" -name "onsite.dm" 2>/dev/null | head -1) + if [ -n "${ONSITE_FILE}" ]; then + cp "${ONSITE_FILE}" "${TEST_DIR}/onsite.dm" + echo " Copied onsite.dm" + else + echo " WARNING: onsite.dm not found in SCF output" + fi +fi + +# ------------------------------------------------------- +# Step 4: Run NSCF calculation +# ------------------------------------------------------- +echo "[3/4] Running NSCF calculation..." +mpirun -np ${MPI_NP} --allow-run-as-root "${ABACUS}" > nscf.log 2>&1 || { + echo "ERROR: NSCF calculation failed!" + echo "Check ${TEST_DIR}/nscf.log for details" + exit 1 +} + +# ------------------------------------------------------- +# Step 5: Verify output +# ------------------------------------------------------- +echo "[4/4] Verifying output..." + +NSF_OUT="${TEST_DIR}/${NSCF_SUFFIX}" + +# Check if output directory exists +if [ ! -d "${NSF_OUT}" ]; then + echo "WARNING: Output directory ${NSF_OUT} not found" + exit 1 +fi + +# Print summary +echo "" +echo "========================================" +echo " SCF + NSCF Workflow Complete" +echo "========================================" +echo "SCF output: ${SCF_OUT}/" +echo "NSCF output: ${NSF_OUT}/" +echo "" + +# Print energy from SCF +if [ -f "${SCF_OUT}/running_scf.log" ]; then + echo "SCF final energy:" + grep "!FINAL ENERGY" "${SCF_OUT}/running_scf.log" | tail -1 || echo " (not found)" +fi + +# Print magnetic moments from NSCF +if [ -f "${NSF_OUT}/running_scf.log" ] || [ -f "${NSF_OUT}/running_nscf.log" ]; then + echo "" + echo "NSCF magnetic moments:" + grep -A 1 "TOTAL MAGNETISM" "${NSF_OUT}/running_scf.log" 2>/dev/null | tail -3 || \ + grep -A 1 "TOTAL MAGNETISM" "${NSF_OUT}/running_nscf.log" 2>/dev/null | tail -3 || \ + echo " (not found)" +fi + +# Print lambda if DeltaSpin +if grep -q "sc_mag_switch" "${TEST_DIR}/INPUT" 2>/dev/null; then + echo "" + echo "NSCF lambda values:" + grep "lambda" "${NSF_OUT}/running_scf.log" 2>/dev/null | tail -3 || \ + grep "lambda" "${NSF_OUT}/running_nscf.log" 2>/dev/null | tail -3 || \ + echo " (not found)" +fi + +echo "" +echo "========================================" diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 83f1f326297..c30d0b77474 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -9,6 +9,7 @@ add_subdirectory(07_OFDFT) add_subdirectory(08_EXX) add_subdirectory(10_others) add_subdirectory(11_PW_GPU) +add_subdirectory(17_DS_DFTU) if(ENABLE_MLALGO) add_subdirectory(09_DeePKS) From db18456a6b8a26f665ba602588ecf7e6e2d0d55b Mon Sep 17 00:00:00 2001 From: dyzheng Date: Mon, 25 May 2026 12:06:55 +0800 Subject: [PATCH 2/2] feat(tests): add tests/17_DS_DFTU with CI-disabled configs and READMEs Add the 17_DS_DFTU test suite for DeltaSpin and DFT+U functionality: - 47 test cases covering LCAO/PW basis, collinear/noncollinear spin, DFT+U, DeltaSpin, and their combinations - Comment out tests in tests/CMakeLists.txt and tests/17_DS_DFTU/CMakeLists.txt to prevent CI failure until DeltaSpin code is merged into develop - Add single-line README to each test directory (printed during Autotest.sh) - Rewrite CASES_CPU.txt with clear English comments explaining disabled tests --- tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/README | 1 + tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/README | 1 + tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/README | 1 + tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/README | 1 + tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/README | 1 + tests/17_DS_DFTU/06_PW_SPIN_S2_Z/README | 1 + tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/README | 1 + tests/17_DS_DFTU/08_PW_DFTU_S2_Z/README | 1 + tests/17_DS_DFTU/09_PW_DFTU_S4_XY/README | 1 + tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/README | 1 + tests/17_DS_DFTU/12_PW_DS_S2_Z/README | 1 + tests/17_DS_DFTU/14_PW_DS_S4_XYZ/README | 1 + tests/17_DS_DFTU/15_PW_DS_S4_Z/README | 1 + tests/17_DS_DFTU/16_PW_DS_S4_XY/README | 1 + tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/README | 1 + tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/README | 1 + tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/README | 1 + tests/17_DS_DFTU/24_LCAO_DS_S2_Z/README | 1 + tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/README | 1 + tests/17_DS_DFTU/27_LCAO_DS_S4_Z/README | 1 + tests/17_DS_DFTU/28_LCAO_DS_S4_XY/README | 1 + tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/README | 1 + tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/README | 1 + .../17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/README | 1 + tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/README | 1 + tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/README | 1 + .../17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/README | 1 + tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/README | 1 + .../17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/README | 1 + tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/README | 1 + tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/README | 1 + .../42_PW_DFTU_DS_S2_Thr1e10_Z/README | 1 + .../43_PW_DFTU_DS_S4_Thr1e10_XY/README | 1 + .../44_PW_DFTU_DS_S2_Thr10_Z/README | 1 + .../45_PW_DFTU_DS_S4_Thr10_XY/README | 1 + .../50_FeO_O_first_Fe_second/README | 1 + .../51_FeO_Fe_first_O_second/README | 1 + tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/README | 1 + .../56_PW_DS_S4_DirectionOnly_XY/README | 1 + .../57_PW_DFTU_DS_S4_DirectionOnly_XY/README | 1 + .../58_LCAO_DS_S4_DirectionOnly_XY/README | 1 + .../README | 1 + .../60_PW_DFTU_DS_NSCF_Band_XY/README | 1 + tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/README | 1 + .../62_LCAO_DFTU_NSCF_Band_XY/README | 1 + .../63_LCAO_DFTU_DS_NSCF_Band_XY/README | 1 + .../17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/README | 1 + tests/17_DS_DFTU/CASES_CPU.txt | 94 +++++++++++++------ tests/17_DS_DFTU/CMakeLists.txt | 5 + tests/CMakeLists.txt | 3 +- 50 files changed, 121 insertions(+), 28 deletions(-) create mode 100644 tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/README create mode 100644 tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/README create mode 100644 tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/README create mode 100644 tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/README create mode 100644 tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/README create mode 100644 tests/17_DS_DFTU/06_PW_SPIN_S2_Z/README create mode 100644 tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/README create mode 100644 tests/17_DS_DFTU/08_PW_DFTU_S2_Z/README create mode 100644 tests/17_DS_DFTU/09_PW_DFTU_S4_XY/README create mode 100644 tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/README create mode 100644 tests/17_DS_DFTU/12_PW_DS_S2_Z/README create mode 100644 tests/17_DS_DFTU/14_PW_DS_S4_XYZ/README create mode 100644 tests/17_DS_DFTU/15_PW_DS_S4_Z/README create mode 100644 tests/17_DS_DFTU/16_PW_DS_S4_XY/README create mode 100644 tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/README create mode 100644 tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/README create mode 100644 tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/README create mode 100644 tests/17_DS_DFTU/24_LCAO_DS_S2_Z/README create mode 100644 tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/README create mode 100644 tests/17_DS_DFTU/27_LCAO_DS_S4_Z/README create mode 100644 tests/17_DS_DFTU/28_LCAO_DS_S4_XY/README create mode 100644 tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/README create mode 100644 tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/README create mode 100644 tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/README create mode 100644 tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/README create mode 100644 tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/README create mode 100644 tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/README create mode 100644 tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/README create mode 100644 tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/README create mode 100644 tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/README create mode 100644 tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/README create mode 100644 tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/README create mode 100644 tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/README create mode 100644 tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/README create mode 100644 tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/README create mode 100644 tests/17_DS_DFTU/50_FeO_O_first_Fe_second/README create mode 100644 tests/17_DS_DFTU/51_FeO_Fe_first_O_second/README create mode 100644 tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/README create mode 100644 tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/README create mode 100644 tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/README create mode 100644 tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/README create mode 100644 tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/README create mode 100644 tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/README create mode 100644 tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/README create mode 100644 tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/README create mode 100644 tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/README create mode 100644 tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/README diff --git a/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/README b/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/README new file mode 100644 index 00000000000..9c64f81580b --- /dev/null +++ b/tests/17_DS_DFTU/01_LCAO_SPIN_S2_Z/README @@ -0,0 +1 @@ +Test LCAO collinear spin (nspin=2) SCF convergence with Z magnetization, baseline for LCAO magnetic calculations diff --git a/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/README b/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/README new file mode 100644 index 00000000000..0dcef4cd710 --- /dev/null +++ b/tests/17_DS_DFTU/02_LCAO_SPIN_S4_XYZ/README @@ -0,0 +1 @@ +Test LCAO noncollinear spin (nspin=4) SCF convergence with XYZ magnetization diff --git a/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/README b/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/README new file mode 100644 index 00000000000..2fc8189cee3 --- /dev/null +++ b/tests/17_DS_DFTU/03_LCAO_DFTU_S2_Z/README @@ -0,0 +1 @@ +Test LCAO DFT+U (U=5.0eV, l=2) with collinear spin (nspin=2), Z magnetization diff --git a/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/README b/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/README new file mode 100644 index 00000000000..ff9ea1c72b1 --- /dev/null +++ b/tests/17_DS_DFTU/04_LCAO_DFTU_S4_XY/README @@ -0,0 +1 @@ +Test LCAO DFT+U with noncollinear spin (nspin=4), XY magnetization constraint diff --git a/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/README b/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/README new file mode 100644 index 00000000000..6ed06b61db3 --- /dev/null +++ b/tests/17_DS_DFTU/05_LCAO_DFTU_S4_XYZ/README @@ -0,0 +1 @@ +Test LCAO DFT+U with noncollinear spin (nspin=4), XYZ magnetization constraint diff --git a/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/README b/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/README new file mode 100644 index 00000000000..8a01ae8ed0f --- /dev/null +++ b/tests/17_DS_DFTU/06_PW_SPIN_S2_Z/README @@ -0,0 +1 @@ +Test PW collinear spin (nspin=2) SCF convergence with Z magnetization, baseline for PW magnetic calculations diff --git a/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/README b/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/README new file mode 100644 index 00000000000..aad7415cd34 --- /dev/null +++ b/tests/17_DS_DFTU/07_PW_SPIN_S4_XYZ/README @@ -0,0 +1 @@ +Test PW noncollinear spin (nspin=4) SCF convergence with XYZ magnetization diff --git a/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/README b/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/README new file mode 100644 index 00000000000..558599f71b2 --- /dev/null +++ b/tests/17_DS_DFTU/08_PW_DFTU_S2_Z/README @@ -0,0 +1 @@ +Test PW DFT+U (U=5.0eV, l=2) with collinear spin (nspin=2), Z magnetization diff --git a/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/README b/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/README new file mode 100644 index 00000000000..7953a4c17e0 --- /dev/null +++ b/tests/17_DS_DFTU/09_PW_DFTU_S4_XY/README @@ -0,0 +1 @@ +Test PW DFT+U with noncollinear spin (nspin=4), XY magnetization constraint diff --git a/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/README b/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/README new file mode 100644 index 00000000000..1227b948642 --- /dev/null +++ b/tests/17_DS_DFTU/11_PW_DFTU_S2_FeO/README @@ -0,0 +1 @@ +Test PW DFT+U on FeO system (U on Fe-3d), collinear spin, kpar=2 diff --git a/tests/17_DS_DFTU/12_PW_DS_S2_Z/README b/tests/17_DS_DFTU/12_PW_DS_S2_Z/README new file mode 100644 index 00000000000..48fe5dae753 --- /dev/null +++ b/tests/17_DS_DFTU/12_PW_DS_S2_Z/README @@ -0,0 +1 @@ +Test PW DeltaSpin with collinear spin (nspin=2), Z magnetization constraint, iterative optimization to target diff --git a/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/README b/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/README new file mode 100644 index 00000000000..5a07ce0bf9f --- /dev/null +++ b/tests/17_DS_DFTU/14_PW_DS_S4_XYZ/README @@ -0,0 +1 @@ +Test PW DeltaSpin with noncollinear spin (nspin=4), XYZ three-direction constraint diff --git a/tests/17_DS_DFTU/15_PW_DS_S4_Z/README b/tests/17_DS_DFTU/15_PW_DS_S4_Z/README new file mode 100644 index 00000000000..2c2a7a0443a --- /dev/null +++ b/tests/17_DS_DFTU/15_PW_DS_S4_Z/README @@ -0,0 +1 @@ +Test PW DeltaSpin with noncollinear spin, Z-only constraint to verify no unphysical XY components diff --git a/tests/17_DS_DFTU/16_PW_DS_S4_XY/README b/tests/17_DS_DFTU/16_PW_DS_S4_XY/README new file mode 100644 index 00000000000..f91270b06af --- /dev/null +++ b/tests/17_DS_DFTU/16_PW_DS_S4_XY/README @@ -0,0 +1 @@ +Test PW DeltaSpin with noncollinear spin (nspin=4), XY magnetization constraint, different crystal structure diff --git a/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/README b/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/README new file mode 100644 index 00000000000..192c51af143 --- /dev/null +++ b/tests/17_DS_DFTU/18_PW_DFTU_DS_S2_Z/README @@ -0,0 +1 @@ +Test PW DFT+U + DeltaSpin combined with collinear spin (nspin=2), Z magnetization constraint diff --git a/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/README b/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/README new file mode 100644 index 00000000000..7e3ac382cf9 --- /dev/null +++ b/tests/17_DS_DFTU/19_PW_DFTU_DS_S4_XY/README @@ -0,0 +1 @@ +Test PW DFT+U + DeltaSpin combined with noncollinear spin (nspin=4), XY magnetization constraint diff --git a/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/README b/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/README new file mode 100644 index 00000000000..373ad0bc36a --- /dev/null +++ b/tests/17_DS_DFTU/21_PW_DFTU_DS_S4_Z/README @@ -0,0 +1 @@ +Test PW DFT+U + DeltaSpin combined with noncollinear spin (nspin=4), Z-only magnetization constraint diff --git a/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/README b/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/README new file mode 100644 index 00000000000..3a76f718493 --- /dev/null +++ b/tests/17_DS_DFTU/24_LCAO_DS_S2_Z/README @@ -0,0 +1 @@ +Test LCAO DeltaSpin with collinear spin (nspin=2), Z magnetization constraint diff --git a/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/README b/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/README new file mode 100644 index 00000000000..afd4248f0b5 --- /dev/null +++ b/tests/17_DS_DFTU/26_LCAO_DS_S4_XYZ/README @@ -0,0 +1 @@ +Test LCAO DeltaSpin with noncollinear spin (nspin=4), XYZ three-direction constraint diff --git a/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/README b/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/README new file mode 100644 index 00000000000..0c436faf9ca --- /dev/null +++ b/tests/17_DS_DFTU/27_LCAO_DS_S4_Z/README @@ -0,0 +1 @@ +Test LCAO DeltaSpin with noncollinear spin (nspin=4), Z-only magnetization constraint diff --git a/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/README b/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/README new file mode 100644 index 00000000000..34b29aaccde --- /dev/null +++ b/tests/17_DS_DFTU/28_LCAO_DS_S4_XY/README @@ -0,0 +1 @@ +Test LCAO DeltaSpin with noncollinear spin (nspin=4), XY magnetization constraint, different crystal structure diff --git a/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/README b/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/README new file mode 100644 index 00000000000..9a988b43052 --- /dev/null +++ b/tests/17_DS_DFTU/30_LCAO_DFTU_DS_S2_Z/README @@ -0,0 +1 @@ +Test LCAO DFT+U + DeltaSpin combined with collinear spin (nspin=2), Z magnetization constraint diff --git a/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/README b/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/README new file mode 100644 index 00000000000..09dae895aea --- /dev/null +++ b/tests/17_DS_DFTU/31_LCAO_DFTU_DS_S4_XY/README @@ -0,0 +1 @@ +Test LCAO DFT+U + DeltaSpin combined with noncollinear spin (nspin=4), XY magnetization constraint diff --git a/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/README b/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/README new file mode 100644 index 00000000000..e20fbe349e2 --- /dev/null +++ b/tests/17_DS_DFTU/32_LCAO_DFTU_DS_S4_XYZ/README @@ -0,0 +1 @@ +Test LCAO DFT+U + DeltaSpin combined with noncollinear spin (nspin=4), XYZ three-direction constraint diff --git a/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/README b/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/README new file mode 100644 index 00000000000..93b194879ce --- /dev/null +++ b/tests/17_DS_DFTU/33_LCAO_DFTU_DS_S4_Z/README @@ -0,0 +1 @@ +Test LCAO DFT+U + DeltaSpin combined with noncollinear spin (nspin=4), Z-only magnetization constraint diff --git a/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/README b/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/README new file mode 100644 index 00000000000..59d70e79d13 --- /dev/null +++ b/tests/17_DS_DFTU/36_PW_DS_S2_ReadLam_Z/README @@ -0,0 +1 @@ +Test PW DeltaSpin with nsc=1 mode (read lambda file directly without iterative optimization), collinear Z magnetization diff --git a/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/README b/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/README new file mode 100644 index 00000000000..07cf950bd3a --- /dev/null +++ b/tests/17_DS_DFTU/37_PW_DS_S4_ReadLam_XY/README @@ -0,0 +1 @@ +Test PW DeltaSpin with nsc=1 mode, noncollinear spin (nspin=4), XY magnetization constraint, kpar=2 diff --git a/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/README b/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/README new file mode 100644 index 00000000000..5905a0fe013 --- /dev/null +++ b/tests/17_DS_DFTU/38_PW_DS_S2_Thr1e10_Z/README @@ -0,0 +1 @@ +Test PW DeltaSpin under strict convergence threshold (sc_scf_thr=1e-10), Z magnetization diff --git a/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/README b/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/README new file mode 100644 index 00000000000..a25ab09ccc1 --- /dev/null +++ b/tests/17_DS_DFTU/39_PW_DS_S4_Thr1e10_XY/README @@ -0,0 +1 @@ +Test PW DeltaSpin under strict convergence threshold (sc_scf_thr=1e-10), noncollinear XY magnetization diff --git a/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/README b/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/README new file mode 100644 index 00000000000..43222a4cf19 --- /dev/null +++ b/tests/17_DS_DFTU/40_PW_DS_S2_Thr10_Z/README @@ -0,0 +1 @@ +Test PW DeltaSpin under loose convergence threshold (sc_scf_thr=10), Z magnetization diff --git a/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/README b/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/README new file mode 100644 index 00000000000..da903cc5378 --- /dev/null +++ b/tests/17_DS_DFTU/41_PW_DS_S4_Thr10_XY/README @@ -0,0 +1 @@ +Test PW DeltaSpin under loose convergence threshold (sc_scf_thr=10), noncollinear XY magnetization diff --git a/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/README b/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/README new file mode 100644 index 00000000000..f5d72bbea47 --- /dev/null +++ b/tests/17_DS_DFTU/42_PW_DFTU_DS_S2_Thr1e10_Z/README @@ -0,0 +1 @@ +Test PW DFT+U + DeltaSpin combined under strict convergence threshold (sc_scf_thr=1e-10), collinear Z magnetization diff --git a/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/README b/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/README new file mode 100644 index 00000000000..3426f024888 --- /dev/null +++ b/tests/17_DS_DFTU/43_PW_DFTU_DS_S4_Thr1e10_XY/README @@ -0,0 +1 @@ +Test PW DFT+U + DeltaSpin combined under strict convergence threshold (sc_scf_thr=1e-10), noncollinear XY magnetization diff --git a/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/README b/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/README new file mode 100644 index 00000000000..146bc1a6e1e --- /dev/null +++ b/tests/17_DS_DFTU/44_PW_DFTU_DS_S2_Thr10_Z/README @@ -0,0 +1 @@ +Test PW DFT+U + DeltaSpin combined under loose convergence threshold (sc_scf_thr=10), collinear Z magnetization diff --git a/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/README b/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/README new file mode 100644 index 00000000000..71313891ef3 --- /dev/null +++ b/tests/17_DS_DFTU/45_PW_DFTU_DS_S4_Thr10_XY/README @@ -0,0 +1 @@ +Test PW DFT+U + DeltaSpin combined under loose convergence threshold (sc_scf_thr=10), noncollinear XY magnetization diff --git a/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/README b/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/README new file mode 100644 index 00000000000..c4e0b37819d --- /dev/null +++ b/tests/17_DS_DFTU/50_FeO_O_first_Fe_second/README @@ -0,0 +1 @@ +Test PW DFT+U on FeO with O atom type first and Fe second, verify atom ordering independence diff --git a/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/README b/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/README new file mode 100644 index 00000000000..d1da18ce342 --- /dev/null +++ b/tests/17_DS_DFTU/51_FeO_Fe_first_O_second/README @@ -0,0 +1 @@ +Test PW DFT+U on FeO with Fe atom type first and O second, compare with 50 diff --git a/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/README b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/README new file mode 100644 index 00000000000..622a711fa5f --- /dev/null +++ b/tests/17_DS_DFTU/55_PW_DS_NSCF_S4_XY/README @@ -0,0 +1 @@ +Test PW DeltaSpin in NSCF mode with noncollinear spin (nspin=4), XY magnetization, SCF+NSCF workflow diff --git a/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/README b/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/README new file mode 100644 index 00000000000..b8f61f8f6d0 --- /dev/null +++ b/tests/17_DS_DFTU/56_PW_DS_S4_DirectionOnly_XY/README @@ -0,0 +1 @@ +Test PW DeltaSpin with sc_direction_only=1, magnetization direction constrained but magnitude free, XY diff --git a/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/README b/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/README new file mode 100644 index 00000000000..3baa68bee70 --- /dev/null +++ b/tests/17_DS_DFTU/57_PW_DFTU_DS_S4_DirectionOnly_XY/README @@ -0,0 +1 @@ +Test PW DFT+U + DeltaSpin with sc_direction_only=1, direction-only constraint with Hubbard U, XY diff --git a/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/README b/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/README new file mode 100644 index 00000000000..74a368e75e7 --- /dev/null +++ b/tests/17_DS_DFTU/58_LCAO_DS_S4_DirectionOnly_XY/README @@ -0,0 +1 @@ +Test LCAO DeltaSpin with sc_direction_only=1, direction-only constraint in LCAO density matrix path, XY diff --git a/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/README b/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/README new file mode 100644 index 00000000000..f3462685dd9 --- /dev/null +++ b/tests/17_DS_DFTU/59_LCAO_DFTU_DS_S4_DirectionOnly_XY/README @@ -0,0 +1 @@ +Test LCAO DFT+U + DeltaSpin with sc_direction_only=1, direction-only constraint in LCAO path, XY diff --git a/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/README b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/README new file mode 100644 index 00000000000..9276a3acea2 --- /dev/null +++ b/tests/17_DS_DFTU/60_PW_DFTU_DS_NSCF_Band_XY/README @@ -0,0 +1 @@ +Test PW DFT+U + DeltaSpin in NSCF band structure calculation, XY magnetization constraint, SCF+NSCF workflow diff --git a/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/README b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/README new file mode 100644 index 00000000000..45feddab7a8 --- /dev/null +++ b/tests/17_DS_DFTU/61_LCAO_DS_NSCF_S4_XY/README @@ -0,0 +1 @@ +Test LCAO DeltaSpin in NSCF mode with noncollinear spin (nspin=4), XY magnetization, SCF+NSCF workflow diff --git a/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/README b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/README new file mode 100644 index 00000000000..bb6217cc3cc --- /dev/null +++ b/tests/17_DS_DFTU/62_LCAO_DFTU_NSCF_Band_XY/README @@ -0,0 +1 @@ +Test LCAO DFT+U in NSCF band structure calculation, XY magnetization, SCF+NSCF workflow diff --git a/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/README b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/README new file mode 100644 index 00000000000..8fe0e0dbd59 --- /dev/null +++ b/tests/17_DS_DFTU/63_LCAO_DFTU_DS_NSCF_Band_XY/README @@ -0,0 +1 @@ +Test LCAO DFT+U + DeltaSpin in NSCF band structure calculation, XY magnetization constraint, SCF+NSCF workflow diff --git a/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/README b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/README new file mode 100644 index 00000000000..113bef0dc24 --- /dev/null +++ b/tests/17_DS_DFTU/64_PW_DFTU_NSCF_Band_XY/README @@ -0,0 +1 @@ +Test PW DFT+U in NSCF band structure calculation, XY magnetization, SCF+NSCF workflow diff --git a/tests/17_DS_DFTU/CASES_CPU.txt b/tests/17_DS_DFTU/CASES_CPU.txt index aedc2ee8c7f..9a206f02ab6 100644 --- a/tests/17_DS_DFTU/CASES_CPU.txt +++ b/tests/17_DS_DFTU/CASES_CPU.txt @@ -1,62 +1,102 @@ +# Test case list for CI testing. Lines starting with # are disabled. +# Enabled tests are listed without # prefix; disabled tests are commented out with reasons. + +# ======================== # LCAO baseline tests +# ======================== 01_LCAO_SPIN_S2_Z -# 02_LCAO_SPIN_S4_XYZ +# 02_LCAO_SPIN_S4_XYZ # DISABLED: Convergence / numerical stability issue with LCAO noncollinear spin + +# ======================== +# LCAO DFT+U tests +# ======================== 03_LCAO_DFTU_S2_Z -# 04_LCAO_DFTU_S4_XY -# 05_LCAO_DFTU_S4_XYZ +# 04_LCAO_DFTU_S4_XY # DISABLED: Convergence / numerical stability issue with LCAO noncollinear DFT+U +# 05_LCAO_DFTU_S4_XYZ # DISABLED: Convergence / numerical stability issue with LCAO noncollinear DFT+U + +# ======================== # PW baseline tests +# ======================== 06_PW_SPIN_S2_Z 07_PW_SPIN_S4_XYZ 08_PW_DFTU_S2_Z 09_PW_DFTU_S4_XY 11_PW_DFTU_S2_FeO -# PW pure DeltaSpin + +# ======================== +# PW pure DeltaSpin tests +# ======================== 12_PW_DS_S2_Z 14_PW_DS_S4_XYZ 15_PW_DS_S4_Z 16_PW_DS_S4_XY -# PW DFT+U + DeltaSpin + +# ======================== +# PW DFT+U + DeltaSpin tests +# ======================== 18_PW_DFTU_DS_S2_Z 19_PW_DFTU_DS_S4_XY 21_PW_DFTU_DS_S4_Z -# LCAO pure DeltaSpin -# 24_LCAO_DS_S2_Z -# 26_LCAO_DS_S4_XYZ -# 27_LCAO_DS_S4_Z -# 28_LCAO_DS_S4_XY -# LCAO DFT+U + DeltaSpin -# 30_LCAO_DFTU_DS_S2_Z -# 31_LCAO_DFTU_DS_S4_XY -# 32_LCAO_DFTU_DS_S4_XYZ -# 33_LCAO_DFTU_DS_S4_Z + +# ======================== +# LCAO pure DeltaSpin tests +# ======================== +# 24_LCAO_DS_S2_Z # DISABLED: Convergence / numerical stability issue with LCAO DeltaSpin +# 26_LCAO_DS_S4_XYZ # DISABLED: Convergence / numerical stability issue with LCAO noncollinear DeltaSpin +# 27_LCAO_DS_S4_Z # DISABLED: Convergence / numerical stability issue with LCAO noncollinear DeltaSpin +# 28_LCAO_DS_S4_XY # DISABLED: Convergence / numerical stability issue with LCAO noncollinear DeltaSpin + +# ======================== +# LCAO DFT+U + DeltaSpin tests +# ======================== +# 30_LCAO_DFTU_DS_S2_Z # DISABLED: Convergence / numerical stability issue with LCAO DFT+U+DeltaSpin +# 31_LCAO_DFTU_DS_S4_XY # DISABLED: Convergence / numerical stability issue with LCAO DFT+U+DeltaSpin +# 32_LCAO_DFTU_DS_S4_XYZ # DISABLED: Convergence / numerical stability issue with LCAO DFT+U+DeltaSpin +# 33_LCAO_DFTU_DS_S4_Z # DISABLED: Convergence / numerical stability issue with LCAO DFT+U+DeltaSpin + +# ======================== # ReadLam mode (nsc=1, load pre-computed lambda) +# ======================== 36_PW_DS_S2_ReadLam_Z 37_PW_DS_S4_ReadLam_XY + +# ======================== # Lambda loop behavior: thr1e-10 = no lambda loop, load from STRU +# ======================== 38_PW_DS_S2_Thr1e10_Z 39_PW_DS_S4_Thr1e10_XY 42_PW_DFTU_DS_S2_Thr1e10_Z 43_PW_DFTU_DS_S4_Thr1e10_XY + +# ======================== # Lambda loop behavior: thr10 = immediate lambda loop +# ======================== 40_PW_DS_S2_Thr10_Z 41_PW_DS_S4_Thr10_XY -# 44_PW_DFTU_DS_S2_Thr10_Z -45_PW_DFTU_DS_S4_Thr10_XY +# 44_PW_DFTU_DS_S2_Thr10_Z # DISABLED: Convergence / numerical stability issue with loose threshold + +# ======================== # FeO multi-element DFT+U +# ======================== 50_FeO_O_first_Fe_second 51_FeO_Fe_first_O_second + +# ======================== # NSCF (non-self-consistent) tests -# DISABLED: These tests now use SCF+NSCF workflow (run_scf_nscf.sh) -# and require running SCF first to generate charge density files. +# ======================== +# DISABLED: These tests use SCF+NSCF workflow (run_scf_nscf.sh) and require running SCF first. # Run manually with: bash run_scf_nscf.sh [mpi_np] -# # 55_PW_DS_NSCF_S4_XY -# # 60_PW_DFTU_DS_NSCF_Band_XY -# # 61_LCAO_DS_NSCF_S4_XY -# # 62_LCAO_DFTU_NSCF_Band_XY -# # 63_LCAO_DFTU_DS_NSCF_Band_XY -# # 64_PW_DFTU_NSCF_Band_XY +# 55_PW_DS_NSCF_S4_XY # DISABLED: SCF+NSCF workflow test, run manually +# 60_PW_DFTU_DS_NSCF_Band_XY # DISABLED: SCF+NSCF workflow test, run manually +# 61_LCAO_DS_NSCF_S4_XY # DISABLED: SCF+NSCF workflow test, run manually +# 62_LCAO_DFTU_NSCF_Band_XY # DISABLED: SCF+NSCF workflow + convergence issue (genelpa eigenvalue inconsistency) +# 63_LCAO_DFTU_DS_NSCF_Band_XY # DISABLED: SCF+NSCF workflow test, run manually +# 64_PW_DFTU_NSCF_Band_XY # DISABLED: SCF+NSCF workflow test, run manually + +# ======================== # DirectionOnly mode (constrain direction, not magnitude) +# ======================== 56_PW_DS_S4_DirectionOnly_XY 57_PW_DFTU_DS_S4_DirectionOnly_XY -# 58_LCAO_DS_S4_DirectionOnly_XY -# 59_LCAO_DFTU_DS_S4_DirectionOnly_XY +# 58_LCAO_DS_S4_DirectionOnly_XY # DISABLED: Convergence / numerical stability issue with LCAO DirectionOnly +# 59_LCAO_DFTU_DS_S4_DirectionOnly_XY # DISABLED: Convergence / numerical stability issue with LCAO DirectionOnly diff --git a/tests/17_DS_DFTU/CMakeLists.txt b/tests/17_DS_DFTU/CMakeLists.txt index 7c78260e772..8eead45355c 100644 --- a/tests/17_DS_DFTU/CMakeLists.txt +++ b/tests/17_DS_DFTU/CMakeLists.txt @@ -1,5 +1,10 @@ enable_testing() +# TODO: Enable all tests after DeltaSpin + DFT+U code is merged into develop. +# These tests require the DeltaSpin module (source/module_hamilt_general/hamilt_deltaspin.h) +# and associated DFT+U with spin constraint functionality. +# Uncomment the add_test blocks below once the feature branch is merged. + find_program(BASH bash) if(ENABLE_ASAN) add_test( diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c30d0b77474..44724478e5a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -9,7 +9,8 @@ add_subdirectory(07_OFDFT) add_subdirectory(08_EXX) add_subdirectory(10_others) add_subdirectory(11_PW_GPU) -add_subdirectory(17_DS_DFTU) +# TODO: Enable after DeltaSpin + DFT+U code is merged into develop +# add_subdirectory(17_DS_DFTU) if(ENABLE_MLALGO) add_subdirectory(09_DeePKS)