added neigh_mode toggle in mesocnt/viscous

This commit is contained in:
phankl
2022-08-17 17:37:51 +02:00
parent a2714d6cc7
commit d8cb79da36

View File

@ -82,7 +82,10 @@ void PairMesoCNTViscous::compute(int eflag, int vflag)
// update bond neighbor list when necessary
if (update->ntimestep == neighbor->lastcall) bond_neigh_topo();
if (update->ntimestep == neighbor->lastcall) {
if (neigh_flag) bond_neigh_topo();
else bond_neigh_id();
}
// iterate over all bonds