Commit 5b1e582f authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

prevent segfault when defining pair_style comb3 without arguments

parent 53e7fee5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -161,6 +161,8 @@ void PairComb3::allocate()
void PairComb3::settings(int narg, char **arg)
{

  if (narg != 1) error->all(FLERR,"Illegal pair_style command");

  if (strcmp(arg[0],"polar_on") == 0) {
    pol_flag = 1;
    if (comm->me == 0 && screen) fprintf(screen,