replace round() == with compDouble

This commit is contained in:
danielque
2024-01-11 17:44:08 +01:00
parent 8899f489eb
commit 74b7435678

View File

@ -882,7 +882,7 @@ void FixMultisphere::pre_exchange()
while(i < atom->nlocal)
{
if(round(delflag[i]) == 1.)
if(MathExtraLiggghts::compDouble(delflag[i],1.))
{
avec->copy(atom->nlocal-1,i,1);
atom->nlocal--;
@ -992,7 +992,7 @@ void FixMultisphere::pre_neighbor()
existflag = fix_existflag_->vector_atom;
for(int i = 0; i < nlocal; i++)
{
delflag[i] = (round(existflag[i]) == 0) ? 1. : delflag[i];
delflag[i] = (MathExtraLiggghts::compDouble(existflag[i],0.)) ? 1. : delflag[i];
}
}