From f5047ac3c7f9b13fcb01a0676e0722f97acf7eb1 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 19 Jun 2017 17:23:23 -0400 Subject: [PATCH] augment fix shardlow check for ordering fixes to be KOKKOS compatible --- src/USER-DPD/fix_shardlow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/USER-DPD/fix_shardlow.cpp b/src/USER-DPD/fix_shardlow.cpp index 6b367d0f7f..d14c1e0ddb 100644 --- a/src/USER-DPD/fix_shardlow.cpp +++ b/src/USER-DPD/fix_shardlow.cpp @@ -188,7 +188,7 @@ void FixShardlow::setup(int vflag) error->all(FLERR,"Cannot use constant temperature integration routines with DPD."); for (int i = 0; i < modify->nfix; i++){ - if (strcmp(modify->fix[i]->style,"shardlow") == 0) fixShardlow = true; + if (strncmp(modify->fix[i]->style,"shardlow",3) == 0) fixShardlow = true; if (strncmp(modify->fix[i]->style,"nve",3) == 0 || (strncmp(modify->fix[i]->style,"nph",3) == 0)){ if(fixShardlow) break; else error->all(FLERR,"The deterministic integrator must follow fix shardlow in the input file.");