Skip to content

Commit 798777b

Browse files
author
Han Wang
committed
fix bug of type lower bound
1 parent 1998f6b commit 798777b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/lmp/pair_nnp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ void PairNNP::coeff(int narg, char **arg)
439439
if (narg == 2) {
440440
force->bounds(FLERR,arg[0],atom->ntypes,ilo,ihi);
441441
force->bounds(FLERR,arg[1],atom->ntypes,jlo,jhi);
442-
if (ilo != 0 || jlo != 0 || ihi != n || jhi != n) {
442+
if (ilo != 1 || jlo != 1 || ihi != n || jhi != n) {
443443
error->all(FLERR,"deepmd requires that the scale should be set to all atom types, i.e. pair_coeff * *.");
444444
}
445445
}

0 commit comments

Comments
 (0)