Commit bf59c976 authored by Anders Hafreager's avatar Anders Hafreager Committed by Axel Kohlmeyer
Browse files

Added curly brackets and spaces for better code readability

parent 06cc38e1
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -95,14 +95,22 @@ void PairVashishta::modify_params(int narg, char **arg)
  while (iarg < narg) {
    if (strcmp(arg[iarg],"table") == 0) {
      if (iarg+2 > narg) error->all(FLERR,"Illegal pair_modify command");

      nTablebits = force->inumeric(FLERR,arg[iarg+1]);
      if (nTablebits > sizeof(float)*CHAR_BIT)
      if (nTablebits > sizeof(float)*CHAR_BIT) {
        error->all(FLERR,"Too many total bits for bitmapped lookup table");
      if(nTablebits != 0) 
      }

      if(nTablebits == 0) {
        useTable = false;
      } else {
        useTable = true;
      }

      iarg += 2;
    } else if (strcmp(arg[iarg],"tabinner") == 0) {
      if (iarg+2 > narg) error->all(FLERR,"Illegal pair_modify command");
      
      tabinner = force->numeric(FLERR,arg[iarg+1]);
      iarg += 2;
    }