small fix for previous fix for fix pour and fix deposit

This commit is contained in:
Axel Kohlmeyer
2021-03-05 14:15:59 -05:00
parent b5af4f32b9
commit 2777eafe98
2 changed files with 4 additions and 2 deletions

View File

@ -375,7 +375,8 @@ void FixPour::init()
void FixPour::setup_pre_exchange()
{
next_reneighbor = update->ntimestep + 1;
if (ninserted < ninsert) next_reneighbor = update->ntimestep + 1;
else next_reneighbor = 0;
}
/* ----------------------------------------------------------------------

View File

@ -296,7 +296,8 @@ void FixDeposit::init()
void FixDeposit::setup_pre_exchange()
{
next_reneighbor = update->ntimestep+1;
if (ninserted < ninsert) next_reneighbor = update->ntimestep+1;
else next_reneighbor = 0;
}
/* ----------------------------------------------------------------------