git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5504 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2011-01-07 21:42:19 +00:00
parent beabb5e05a
commit 140cdf9485
52 changed files with 417 additions and 220 deletions

View File

@ -322,22 +322,23 @@ void FixDeposit::pre_exchange()
// warn if not successful b/c too many attempts or no proc owned particle
if (comm->me == 0)
if (success == 0)
error->warning("Particle deposition was unsuccessful",0);
if (!success && comm->me == 0)
error->warning("Particle deposition was unsuccessful",0);
// set tag # of new particle beyond all previous atoms
// reset global natoms
// set tag # of new particle beyond all previous atoms
// if global map exists, reset it now instead of waiting for comm
// since deleting atoms messes up ghosts
if (success && atom->tag_enable) {
atom->tag_extend();
if (success) {
atom->natoms += 1;
if (atom->map_style) {
atom->nghost = 0;
atom->map_init();
atom->map_set();
if (atom->tag_enable) {
atom->tag_extend();
if (atom->map_style) {
atom->nghost = 0;
atom->map_init();
atom->map_set();
}
}
}