Skip to content

Commit

Permalink
Fix: set default value of out_wannier_unk to false (#3411)
Browse files Browse the repository at this point in the history
Co-authored-by: dyzheng <zhengdy@bjaisi.com>
  • Loading branch information
dyzheng and dyzheng committed Dec 29, 2023
1 parent 3cd4ddd commit 8cf8f4b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/advanced/input_files/input-main.md
Original file line number Diff line number Diff line change
Expand Up @@ -2788,7 +2788,7 @@ These variables are used to control berry phase and wannier90 interface paramete
- **Description**: write the "UNK.*" file or not.
- 0: don't write the "UNK.*" file.
- 1: write the "UNK.*" file.
- **Default**: 1
- **Default**: 0

### out_wannier_wvfn_formatted

Expand Down
2 changes: 1 addition & 1 deletion source/module_io/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void Input::Default(void)
out_wannier_amn = true;
out_wannier_eig = true;
out_wannier_mmn = true;
out_wannier_unk = true;
out_wannier_unk = false;
out_wannier_wvfn_formatted = true;
for (int i = 0; i < 3; i++)
{
Expand Down
2 changes: 1 addition & 1 deletion source/module_io/test/input_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ TEST_F(InputTest, Default)
EXPECT_EQ(INPUT.wannier_method,1);
EXPECT_TRUE(INPUT.out_wannier_amn);
EXPECT_TRUE(INPUT.out_wannier_mmn);
EXPECT_TRUE(INPUT.out_wannier_unk);
EXPECT_FALSE(INPUT.out_wannier_unk);
EXPECT_TRUE(INPUT.out_wannier_eig);
EXPECT_TRUE(INPUT.out_wannier_wvfn_formatted);
EXPECT_DOUBLE_EQ(INPUT.kspacing[0], 0.0);
Expand Down
2 changes: 1 addition & 1 deletion source/module_io/test/input_test_para.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ TEST_F(InputParaTest, Bcast)
EXPECT_EQ(INPUT.wannier_method, 1);
EXPECT_TRUE(INPUT.out_wannier_mmn);
EXPECT_TRUE(INPUT.out_wannier_amn);
EXPECT_TRUE(INPUT.out_wannier_unk);
EXPECT_FALSE(INPUT.out_wannier_unk);
EXPECT_TRUE(INPUT.out_wannier_eig);
EXPECT_TRUE(INPUT.out_wannier_wvfn_formatted);
EXPECT_DOUBLE_EQ(INPUT.kspacing[0], 0.0);
Expand Down

0 comments on commit 8cf8f4b

Please sign in to comment.