Skip to content

Commit a02b5d8

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 9900bb7 commit a02b5d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/module_elecstate/cal_dm.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ inline void cal_dm(const Parallel_Orbitals* ParaV, const ModuleBase::matrix& wg,
4141
ModuleBase::WARNING_QUIT("ElecStateLCAO::cal_dm", "please check global2local_col!");
4242
}
4343
}
44-
if (ib_global >= wg.nc) continue;
44+
if (ib_global >= wg.nc) { continue;
45+
}
4546
const double wg_local = wg(ik, ib_global);
4647
double* wg_wfc_pointer = &(wg_wfc(0, ib_local, 0));
4748
BlasConnector::scal(nbasis_local, wg_local, wg_wfc_pointer, 1);
@@ -99,7 +100,8 @@ inline void cal_dm(const Parallel_Orbitals* ParaV, const ModuleBase::matrix& wg,
99100
ModuleBase::WARNING_QUIT("ElecStateLCAO::cal_dm", "please check global2local_col!");
100101
}
101102
}
102-
if (ib_global >= wg.nc) continue;
103+
if (ib_global >= wg.nc) { continue;
104+
}
103105
const double wg_local = wg(ik, ib_global);
104106
std::complex<double>* wg_wfc_pointer = &(wg_wfc(0, ib_local, 0));
105107
BlasConnector::scal(nbasis_local, wg_local, wg_wfc_pointer, 1);

0 commit comments

Comments
 (0)