Skip to content

Commit b866f36

Browse files
committed
updates
1 parent 6ba5a4b commit b866f36

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

docs/advanced/input_files/input-main.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ These variables are used to control the output of properties.
16701670
- 1: (txt format)
16711671
- non-gamma-only: `wfs1k1_pw.txt` or `wfs1k2_pw.txt`, ...;
16721672
- 2: (binary format)
1673-
- non-gamma-only: `wfs1k1_pw.dat` or `wfs1k2_Pw.dat`, ....
1673+
- non-gamma-only: `wfs1k1_pw.dat` or `wfs1k2_pw.dat`, ....
16741674
- **Default**: 0
16751675

16761676
### out_wfc_r

source/module_io/filename.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ std::string filename_output(
4141

4242
// spin index
4343
int is0 = -1;
44-
// ik0 is the k-point index, starting from 1
44+
// ik0 is the k-point index, starting from 0
4545
int ik0 = ik2iktot[ik_local];
4646

47-
if(nspin == 1)
48-
{
49-
is0 = 1;
50-
}
47+
if(nspin == 1)
48+
{
49+
is0 = 1;
50+
}
5151
else if(nspin == 2)
5252
{
5353
const int half_k = nkstot/2;
@@ -60,14 +60,14 @@ std::string filename_output(
6060
{
6161
is0 = 1;
6262
}
63-
}
64-
else if(nspin==4)
65-
{
66-
is0 = 12;
67-
}
63+
}
64+
else if(nspin==4)
65+
{
66+
is0 = 12;
67+
}
6868

69-
// spin part
70-
std::string spin_block;
69+
// spin part
70+
std::string spin_block;
7171
spin_block = "s" + std::to_string(is0);
7272

7373
// k-point part

0 commit comments

Comments
 (0)