Merge pull request #3405 from lammps/distributed-grids

Support for distributed grids
This commit is contained in:
Axel Kohlmeyer
2022-12-19 12:06:25 -05:00
committed by GitHub
121 changed files with 46991 additions and 3879 deletions

View File

@ -791,6 +791,19 @@ int Modify::min_reset_ref()
return itmpall;
}
/* ----------------------------------------------------------------------
reset grids for any Fix or Compute that uses distributed grids
called by load balancer when proc sub-domains change
------------------------------------------------------------------------- */
void Modify::reset_grid()
{
for (int i = 0; i < nfix; i++)
if (fix[i]->pergrid_flag) fix[i]->reset_grid();
for (int i = 0; i < ncompute; i++)
if (compute[i]->pergrid_flag) compute[i]->reset_grid();
}
/* ----------------------------------------------------------------------
add a new fix or replace one with same ID
------------------------------------------------------------------------- */