also apply 2 atom minimum to balance() and packing atom IDs

This commit is contained in:
Axel Kohlmeyer
2022-05-18 14:22:43 -04:00
parent bfd6efcedb
commit eb3ee96b9c

View File

@ -416,10 +416,10 @@ void Dump::write()
// if sorting on IDs also request ID list from pack() // if sorting on IDs also request ID list from pack()
// sort buf as needed // sort buf as needed
if (sort_flag && sortcol == 0) pack(ids); if (sort_flag && (ntotal > 1) && sortcol == 0) pack(ids);
else pack(nullptr); else pack(nullptr);
if (sort_flag && ntotal > 1) sort(); if (sort_flag && (ntotal > 1)) sort();
if (balance_flag) balance(); if (balance_flag && (ntotal > 1)) balance();
// write timestep header // write timestep header
// for multiproc, // for multiproc,