From 5087bdb20c593b6b31c7d177a94e904587e0c269 Mon Sep 17 00:00:00 2001 From: athomps Date: Sat, 5 Dec 2015 03:28:45 +0000 Subject: [PATCH] prevented reorder from being used with fix gcmc git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14285 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/dump.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/dump.cpp b/src/dump.cpp index 622badb236..0a32bc43cf 100644 --- a/src/dump.cpp +++ b/src/dump.cpp @@ -25,6 +25,8 @@ #include "memory.h" #include "error.h" #include "force.h" +#include "modify.h" +#include "fix.h" using namespace LAMMPS_NS; @@ -206,7 +208,13 @@ void Dump::init() // compute ntotal_reorder, nme_reorder, idlo/idhi to test against later reorderflag = 0; - if (sortcol == 0 && atom->tag_consecutive()) { + + int gcmcflag = 0; + for (int i = 0; i < modify->nfix; i++) + if ((strcmp(modify->fix[i]->style,"gcmc") == 0)) + gcmcflag = 1; + + if (sortcol == 0 && atom->tag_consecutive() && !gcmcflag) { tagint *tag = atom->tag; int *mask = atom->mask; int nlocal = atom->nlocal;