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
This commit is contained in:
athomps
2015-12-05 03:28:45 +00:00
parent f7702fd7e3
commit 5087bdb20c

View File

@ -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;