From 14322a9907c929047019bac2f7d250e817877b1d Mon Sep 17 00:00:00 2001 From: Stan Moore Date: Thu, 30 Apr 2020 12:37:05 -0600 Subject: [PATCH] Allow compute_coord_atom to use Kokkos orientorder --- src/compute_coord_atom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compute_coord_atom.cpp b/src/compute_coord_atom.cpp index 8f5e028390..084968806e 100644 --- a/src/compute_coord_atom.cpp +++ b/src/compute_coord_atom.cpp @@ -27,6 +27,7 @@ #include "group.h" #include "memory.h" #include "error.h" +#include "utils.h" using namespace LAMMPS_NS; @@ -93,7 +94,7 @@ ComputeCoordAtom::ComputeCoordAtom(LAMMPS *lmp, int narg, char **arg) : int iorientorder = modify->find_compute(id_orientorder); if (iorientorder < 0) error->all(FLERR,"Could not find compute coord/atom compute ID"); - if (strcmp(modify->compute[iorientorder]->style,"orientorder/atom") != 0) + if (!utils::strmatch(modify->compute[iorientorder]->style,"^orientorder/atom")) error->all(FLERR,"Compute coord/atom compute ID is not orientorder/atom"); threshold = force->numeric(FLERR,arg[5]);