Skip to content

Commit be48991

Browse files
committed
rename reduce
1 parent b3083b8 commit be48991

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

source/module_elecstate/module_charge/symmetry_rho.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void Symmetry_rho::psymm(double* rho_part,
9797
rhotot.resize(rho_basis->nxyz);
9898
ModuleBase::GlobalFunc::ZEROS(rhotot.data(), rho_basis->nxyz);
9999
}
100-
Pgrid.reduce_to_fullrho(rhotot.data(), rho_part);
100+
Pgrid.reduce(rhotot.data(), rho_part);
101101

102102
// (2)
103103
if (GlobalV::MY_RANK == 0)

source/module_hamilt_pw/hamilt_pwdft/parallel_grid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ void Parallel_Grid::zpiece_to_stogroup(double *zpiece, const int &iz, double *rh
326326
return;
327327

328328
}
329-
void Parallel_Grid::reduce_to_fullrho(double* rhotot, const double* const rhoin)const
329+
void Parallel_Grid::reduce(double* rhotot, const double* const rhoin)const
330330
{
331-
//ModuleBase::TITLE("Parallel_Grid","reduce_to_fullrho");
331+
//ModuleBase::TITLE("Parallel_Grid","reduce");
332332

333333
// if not the first pool, wait here until processpr 0
334334
// send the Barrier command.

source/module_hamilt_pw/hamilt_pwdft/parallel_grid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Parallel_Grid
3030
void zpiece_to_all(double *zpiece, const int &iz, double *rho) const;
3131
void zpiece_to_stogroup(double *zpiece, const int &iz, double *rho) const; //qainrui add for sto-dft 2021-7-21
3232

33-
void reduce_to_fullrho(double* rhotot, const double* constrhoin)const;
33+
void reduce(double* rhotot, const double* constrhoin)const;
3434
#endif
3535

3636
const int& nx = this->ncx;

source/module_io/write_cube.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void ModuleIO::write_cube_core(
161161
const int nxyz = nxy * nz;
162162
std::vector<double> data_cube(nxyz, 0.0);
163163

164-
pgrid.reduce_to_fullrho(data_cube.data(), data);
164+
pgrid.reduce(data_cube.data(), data);
165165

166166
// for cube file
167167
if (my_rank == 0)

0 commit comments

Comments
 (0)