Unverified Commit 0a96a8c3 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

make check for running under hybrid/overlay compatible with suffix styles

also improve error message
parent 72ff0dd8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
#include "neigh_request.h"
#include "memory.h"
#include "error.h"
#include "utils.h"

using namespace LAMMPS_NS;

@@ -116,8 +117,8 @@ void PairDRIP::allocate()
void PairDRIP::settings(int narg, char ** /* arg */)
{
  if (narg != 0) error->all(FLERR,"Illegal pair_style command");
  if (strcmp(force->pair_style,"hybrid/overlay")!=0)
    error->all(FLERR,"ERROR: requires hybrid/overlay pair_style");
  if (!utils::strmatch(force->pair_style,"^hybrid/overlay"))
    error->all(FLERR,"Pair style drip must be used as sub-style with hybrid/overlay");
}

/* ----------------------------------------------------------------------