Skip to content

Commit 673fd8f

Browse files
author
abacus_fixer
committed
style: unify code indentation to 4-space in source_md files
- Replace tabs with 4 spaces in md_func.cpp (lines 198-209) - Replace tabs with 4 spaces in md_base.cpp (line 65) - Replace tabs with 4 spaces in run_md.cpp (lines 59-61)
1 parent f0558c5 commit 673fd8f

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

source/source_md/md_base.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void MD_base::setup(ModuleESolver::ESolver* p_esolver, const std::string& global
6262

6363
// mohan add 2026-01-04
6464
const int stress_step = 0;
65-
const int force_step = 0;
65+
const int force_step = 0;
6666
const int istep_print = step_ + step_rst_ + 1;
6767

6868
ModuleIO::print_screen(stress_step, force_step, istep_print);

source/source_md/md_func.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,18 @@ void init_vel(const UnitCell& unit_in,
195195
ModuleBase::Vector3<int> frozen;
196196
get_mass_mbl(unit_in, allmass, frozen, ionmbl);
197197
frozen_freedom = frozen.x + frozen.y + frozen.z;
198-
if (frozen.x == 0)
199-
{
200-
++frozen_freedom;
201-
}
202-
if (frozen.y == 0)
203-
{
204-
++frozen_freedom;
205-
}
206-
if (frozen.z == 0)
207-
{
208-
++frozen_freedom;
209-
}
198+
if (frozen.x == 0)
199+
{
200+
++frozen_freedom;
201+
}
202+
if (frozen.y == 0)
203+
{
204+
++frozen_freedom;
205+
}
206+
if (frozen.z == 0)
207+
{
208+
++frozen_freedom;
209+
}
210210

211211
if (unit_in.init_vel)
212212
{

source/source_md/run_md.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ void md_line(UnitCell& unit_in, ModuleESolver::ESolver* p_esolver, const Paramet
5656
}
5757
else
5858
{
59-
// mohan add 2026-01-04
60-
const int stress_step = 0;
59+
// mohan add 2026-01-04
60+
const int stress_step = 0;
6161
const int force_step = 0;
6262
const int istep_print = mdrun->step_ + mdrun->step_rst_ + 1;
6363
ModuleIO::print_screen(stress_step, force_step, istep_print);

0 commit comments

Comments
 (0)