Skip to content

Commit 828ed73

Browse files
authored
Merge pull request #506 from sunliang98/planewave
Adjust the order of sticks on each core and fix a bug.
2 parents 60f026d + 68a31e7 commit 828ed73

File tree

3 files changed

+90
-106
lines changed

3 files changed

+90
-106
lines changed

source/module_pw/pw_basis.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ class PW_Basis
123123
int* st_bottom2D, // the z-coordinate of the bottom of stick on (x, y), stored in 2d x-y plane.
124124
int* st_i, // x or x + nx (if x < 0) of stick.
125125
int* st_j, // y or y + ny (if y < 0) of stick.
126-
int* st_length, // number of planewaves in stick, stored in 1d array with tot_nst elements.
127-
int* st_bottom // minimum z of stick, stored in 1d array with tot_nst elements.
126+
int* st_length // number of planewaves in stick, stored in 1d array with tot_nst elements.
128127
);
129128
// for distributeg_method1
130129
void divide_sticks(
@@ -133,20 +132,15 @@ class PW_Basis
133132
int* st_j, // y or y + ny (if y < 0) of stick.
134133
int* st_length, // the stick on (x, y) consists of st_length[x*ny+y] planewaves.
135134
int* npw_per, // number of planewaves on each core.
136-
int* nst_per, // number of sticks on each core.
137-
int* is2ip // ip of core containing is^th stick, map is to ip.
135+
int* nst_per // number of sticks on each core.
138136
);
139137
void get_istot2ixy(
140138
int* st_i, // x or x + nx (if x < 0) of stick.
141-
int* st_j, // y or y + ny (if y < 0) of stick.
142-
int* is2ip // ip of core containing is^th stick, map is to ip.
139+
int* st_j // y or y + ny (if y < 0) of stick.
143140
);
144141
void get_ig2isz_is2ixy(
145-
int* st_i, // x or x + nx (if x < 0) of stick.
146-
int* st_j, // y or y + ny (if y < 0) of stick.
147142
int* st_bottom, // minimum z of stick, stored in 1d array with tot_nst elements.
148-
int* st_length, // the stick on (x, y) consists of st_length[x*ny+y] planewaves.
149-
int* is2ip // ip of core containing is^th stick, map is to ip.
143+
int* st_length // the stick on (x, y) consists of st_length[x*ny+y] planewaves.
150144
);
151145
// for distributeg_method2
152146
// void divide_sticks2(

0 commit comments

Comments
 (0)