You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/module_pw/pw_basis.h
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -193,12 +193,20 @@ class PW_Basis
193
193
voidrecip2real(std::complex<double> * in, double *out); //in:(nz, ns) ; out(nplane,nx*ny)
194
194
voidrecip2real(std::complex<double> * in, std::complex<double> * out); //in:(nz, ns) ; out(nplane,nx*ny)
195
195
196
-
voidgatherp_scatters(std::complex<double> *in, std::complex<double> *out); //gather planes and scatter sticks of all processors
197
-
voidgathers_scatterp(std::complex<double> *in, std::complex<double> *out); //gather sticks of and scatter planes of all processors
196
+
#ifdef __MIX_PRECISION
197
+
voidreal2recip(float * in, std::complex<float> * out); //in:(nplane,nx*ny) ; out(nz, ns)
198
+
voidreal2recip(std::complex<float> * in, std::complex<float> * out); //in:(nplane,nx*ny) ; out(nz, ns)
199
+
voidrecip2real(std::complex<float> * in, float *out); //in:(nz, ns) ; out(nplane,nx*ny)
200
+
voidrecip2real(std::complex<float> * in, std::complex<float> * out); //in:(nz, ns) ; out(nplane,nx*ny)
201
+
#endif
202
+
template<typename T>
203
+
voidgatherp_scatters(std::complex<T> *in, std::complex<T> *out); //gather planes and scatter sticks of all processors
204
+
template<typename T>
205
+
voidgathers_scatterp(std::complex<T> *in, std::complex<T> *out); //gather sticks of and scatter planes of all processors
198
206
// void gathers_scatterp2(std::complex<double> *in, std::complex<double> *out); //gather sticks of and scatter planes of all processors
199
207
// void gatherp_scatters2(std::complex<double> *in, std::complex<double> *out); //gather sticks of and scatter planes of all processors
200
-
voidgatherp_scatters_gamma(std::complex<double> *in, std::complex<double> *out); //gather planes and scatter sticks of all processors, used when gamma_only
201
-
voidgathers_scatterp_gamma(std::complex<double> *in, std::complex<double> *out); //gather sticks of and scatter planes of all processors, used when gamma only
208
+
//void gatherp_scatters_gamma(std::complex<double> *in, std::complex<double> *out); //gather planes and scatter sticks of all processors, used when gamma_only
209
+
//void gathers_scatterp_gamma(std::complex<double> *in, std::complex<double> *out); //gather sticks of and scatter planes of all processors, used when gamma only
0 commit comments