Skip to content

Commit cb8a5ff

Browse files
authored
Refactor&Docs: add annotation beside commented-out lines in VDW module (#6117)
1 parent 9fb090c commit cb8a5ff

File tree

1 file changed

+4
-1
lines changed
  • source/module_hamilt_general/module_vdw

1 file changed

+4
-1
lines changed

source/module_hamilt_general/module_vdw/vdw.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ std::unique_ptr<Vdw> make_vdw(const UnitCell &ucell,
4444
const Input_para &input,
4545
std::ofstream* plog)
4646
{
47+
// NOTE: the following lines are incorrect!
48+
// NOTE: VDW interaction exists between images even if there is only one
49+
// NOTE: atom in cell. See issue#5401: https://github.com/deepmodeling/abacus-develop/issues/5401
4750
// if (ucell.nat < 2 && input.vdw_method != "none")
4851
// {
4952
// ModuleBase::WARNING("VDW", "Only one atom in this system, and will not do the calculation of VDW");
@@ -76,4 +79,4 @@ std::unique_ptr<Vdw> make_vdw(const UnitCell &ucell,
7679
return nullptr; // "none" method
7780
}
7881

79-
} // namespace vdw
82+
} // namespace vdw

0 commit comments

Comments
 (0)