You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sprintf(warning_msg, "Interaction between types %d and %d is set with deepmd, but will be ignored.\n Deepmd model has only %d types, it only computes the mulitbody interaction of types: 1-%d.", i, j, numb_types, numb_types);
483
+
error->warning(FLERR, warning_msg);
484
+
}
452
485
}
453
-
}
486
+
}
454
487
}
455
488
456
489
@@ -465,6 +498,12 @@ void PairNNP::init_style()
465
498
466
499
doublePairNNP::init_one(int i, int j)
467
500
{
501
+
if (i > numb_types || j > numb_types) {
502
+
char warning_msg[1024];
503
+
sprintf(warning_msg, "Interaction between types %d and %d is set with deepmd, but will be ignored.\n Deepmd model has only %d types, it only computes the mulitbody interaction of types: 1-%d.", i, j, numb_types, numb_types);
0 commit comments