File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
source/module_elecstate/module_charge Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class Charge_Mixing
5656 * @brief allocate memory of dmr_mdata
5757 * @param nnr size of real-space density matrix
5858 */
59- void allocate_mixing_dmr (int nnr);
59+ void allocate_mixing_dmr (const int nnr);
6060
6161 /* *
6262 * @brief charge mixing
Original file line number Diff line number Diff line change 33#include " module_parameter/parameter.h"
44#include " module_base/timer.h"
55
6- void Charge_Mixing::allocate_mixing_dmr (int nnr)
6+ void Charge_Mixing::allocate_mixing_dmr (const int nnr)
77{
88 // Note that: we cannot allocate memory for dmr_mdata in set_mixing.
99 // since the size of dmr_mdata is given by the size of HContainer.nnr, which is calculated in DensityMatrix::init_DMR().
You can’t perform that action at this time.
0 commit comments