Added another check specially for chemsnap

This commit is contained in:
Aidan Thompson
2021-03-09 19:14:17 -07:00
parent 115723a4d4
commit 9329ab6ab8

View File

@ -782,6 +782,9 @@ void PairSNAP::read_files(char *coefffilename, char *paramfilename)
if (rcutfacflag == 0 || twojmaxflag == 0)
error->all(FLERR,"Incorrect SNAP parameter file");
if (chemflag && nelemtmp != nelements)
error->all(FLERR,"Incorrect SNAP parameter file");
}
/* ----------------------------------------------------------------------