fix crash with multielement inner cutoff

This commit is contained in:
megmcca
2022-04-13 09:49:13 -06:00
committed by GitHub
parent 2ff8ac0cb2
commit 230bed0bc4

View File

@ -692,7 +692,7 @@ void PairSNAP::read_files(char *coefffilename, char *paramfilename)
if (keywd == "rinner" || keywd == "drinner") {
if (nwords != nelements+1)
if (words.size() != nelements+1)
error->all(FLERR,"Incorrect SNAP parameter file");
if (comm->me == 0)