no need to sort dump if there are less than 2 atoms

This commit is contained in:
Axel Kohlmeyer
2022-05-18 13:48:06 -04:00
parent c16f40eb7c
commit bfd6efcedb

View File

@ -418,7 +418,7 @@ void Dump::write()
if (sort_flag && sortcol == 0) pack(ids);
else pack(nullptr);
if (sort_flag) sort();
if (sort_flag && ntotal > 1) sort();
if (balance_flag) balance();
// write timestep header