Skip to content

Commit 6ee0e67

Browse files
add const in allocate_mixing_dmr
1 parent b977da2 commit 6ee0e67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/module_elecstate/module_charge/charge_mixing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

source/module_elecstate/module_charge/charge_mixing_dmr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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().

0 commit comments

Comments
 (0)