do not reset box (i.e. apply shrink-wrapping) for systems without atoms
This commit is contained in:
@ -352,6 +352,11 @@ void Domain::set_local_box()
|
|||||||
void Domain::reset_box()
|
void Domain::reset_box()
|
||||||
{
|
{
|
||||||
// perform shrink-wrapping
|
// perform shrink-wrapping
|
||||||
|
|
||||||
|
// nothing to do for empty systems
|
||||||
|
|
||||||
|
if (atom->natoms == 0) return;
|
||||||
|
|
||||||
// compute extent of atoms on this proc
|
// compute extent of atoms on this proc
|
||||||
// for triclinic, this is done in lamda space
|
// for triclinic, this is done in lamda space
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user