We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c76692f commit b497e7bCopy full SHA for b497e7b
source/source_hamilt/module_vdw/vdwd2.h
@@ -36,9 +36,9 @@ class Vdwd2 : public Vdw
36
int yidx = para_.period().y / 2;
37
int zidx = para_.period().z / 2;
38
39
- for (int it1 = 0; it1 != ucell_.ntype; ++it1)
+ for (int it1 = 0; it1 < ucell_.ntype; ++it1)
40
{
41
- for (int it2 = 0; it2 != ucell_.ntype; ++it2)
+ for (int it2 = 0; it2 < ucell_.ntype; ++it2)
42
43
const double C6_product
44
= sqrt(para_.C6().at(ucell_.atoms[it1].ncpp.psd) * para_.C6().at(ucell_.atoms[it2].ncpp.psd))
0 commit comments