augment fix shardlow check for ordering fixes to be KOKKOS compatible

This commit is contained in:
Axel Kohlmeyer 2017-06-19 17:23:23 -04:00
parent 3c329d1707
commit f5047ac3c7
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ void FixShardlow::setup(int vflag)
error->all(FLERR,"Cannot use constant temperature integration routines with DPD."); error->all(FLERR,"Cannot use constant temperature integration routines with DPD.");
for (int i = 0; i < modify->nfix; i++){ 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 (strncmp(modify->fix[i]->style,"nve",3) == 0 || (strncmp(modify->fix[i]->style,"nph",3) == 0)){
if(fixShardlow) break; if(fixShardlow) break;
else error->all(FLERR,"The deterministic integrator must follow fix shardlow in the input file."); else error->all(FLERR,"The deterministic integrator must follow fix shardlow in the input file.");