From 2da52d8d9d0dab818b84f9747c59576e1afe218a Mon Sep 17 00:00:00 2001 From: sjplimp Date: Tue, 27 May 2014 14:25:40 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12029 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/input.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/input.cpp b/src/input.cpp index 4ed825a941..c3b265180b 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -1164,6 +1164,11 @@ void Input::comm_style() "Cannot switch to comm style brick from " "irregular tiling of proc domains"); comm = new CommBrick(lmp); + // NOTE: this will lose load balancing info in old CommBrick + if (domain->box_exist) { + comm->set_proc_grid(); + domain->set_local_box(); + } } else if (strcmp(arg[0],"tiled") == 0) { error->all(FLERR,"Comm_style tiled not yet supported"); comm = new CommTiled(lmp);