Skip to content

Commit 8cf8f4b

Browse files
dyzhengdyzheng
andauthored
Fix: set default value of out_wannier_unk to false (#3411)
Co-authored-by: dyzheng <zhengdy@bjaisi.com>
1 parent 3cd4ddd commit 8cf8f4b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/advanced/input_files/input-main.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@ These variables are used to control berry phase and wannier90 interface paramete
27882788
- **Description**: write the "UNK.*" file or not.
27892789
- 0: don't write the "UNK.*" file.
27902790
- 1: write the "UNK.*" file.
2791-
- **Default**: 1
2791+
- **Default**: 0
27922792

27932793
### out_wannier_wvfn_formatted
27942794

source/module_io/input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void Input::Default(void)
187187
out_wannier_amn = true;
188188
out_wannier_eig = true;
189189
out_wannier_mmn = true;
190-
out_wannier_unk = true;
190+
out_wannier_unk = false;
191191
out_wannier_wvfn_formatted = true;
192192
for (int i = 0; i < 3; i++)
193193
{

source/module_io/test/input_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ TEST_F(InputTest, Default)
7171
EXPECT_EQ(INPUT.wannier_method,1);
7272
EXPECT_TRUE(INPUT.out_wannier_amn);
7373
EXPECT_TRUE(INPUT.out_wannier_mmn);
74-
EXPECT_TRUE(INPUT.out_wannier_unk);
74+
EXPECT_FALSE(INPUT.out_wannier_unk);
7575
EXPECT_TRUE(INPUT.out_wannier_eig);
7676
EXPECT_TRUE(INPUT.out_wannier_wvfn_formatted);
7777
EXPECT_DOUBLE_EQ(INPUT.kspacing[0], 0.0);

source/module_io/test/input_test_para.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ TEST_F(InputParaTest, Bcast)
7676
EXPECT_EQ(INPUT.wannier_method, 1);
7777
EXPECT_TRUE(INPUT.out_wannier_mmn);
7878
EXPECT_TRUE(INPUT.out_wannier_amn);
79-
EXPECT_TRUE(INPUT.out_wannier_unk);
79+
EXPECT_FALSE(INPUT.out_wannier_unk);
8080
EXPECT_TRUE(INPUT.out_wannier_eig);
8181
EXPECT_TRUE(INPUT.out_wannier_wvfn_formatted);
8282
EXPECT_DOUBLE_EQ(INPUT.kspacing[0], 0.0);

0 commit comments

Comments
 (0)