diff --git a/src/compute_com_chunk.cpp b/src/compute_com_chunk.cpp index 92194557df..0af54d9b77 100644 --- a/src/compute_com_chunk.cpp +++ b/src/compute_com_chunk.cpp @@ -88,8 +88,8 @@ void ComputeCOMChunk::setup() // done in setup, so that ComputeChunkAtom::setup() is already called if (firstflag && cchunk->idsflag == ONCE) { - firstflag = massneed = 0; compute_array(); + firstflag = massneed = 0; } }