Skip to content
Snippets Groups Projects
Commit 69653072 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

print warning when "compress yes" is ignored with delete_atoms

parent 25c46593
No related branches found
No related tags found
No related merge requests found
...@@ -109,11 +109,14 @@ void DeleteAtoms::command(int narg, char **arg) ...@@ -109,11 +109,14 @@ void DeleteAtoms::command(int narg, char **arg)
// reset atom tags to be contiguous // reset atom tags to be contiguous
// set all atom IDs to 0, call tag_extend() // set all atom IDs to 0, call tag_extend()
if (atom->molecular == 0 && compress_flag) { if (compress_flag) {
tagint *tag = atom->tag; if (atom->molecular == 0) {
int nlocal = atom->nlocal; tagint *tag = atom->tag;
for (int i = 0; i < nlocal; i++) tag[i] = 0; int nlocal = atom->nlocal;
atom->tag_extend(); for (int i = 0; i < nlocal; i++) tag[i] = 0;
atom->tag_extend();
} else if (comm->me == 0)
error->warning(FLERR,"Ignoring 'compress yes' for molecular system");
} }
// reset atom->natoms and also topology counts // reset atom->natoms and also topology counts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment