From d8cb79da36aff930f15ba84a0efcfc3eab33f9a1 Mon Sep 17 00:00:00 2001 From: phankl Date: Wed, 17 Aug 2022 17:37:51 +0200 Subject: [PATCH] added neigh_mode toggle in mesocnt/viscous --- src/MESONT/pair_mesocnt_viscous.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MESONT/pair_mesocnt_viscous.cpp b/src/MESONT/pair_mesocnt_viscous.cpp index 6eadfc4129..7e7069a7f9 100644 --- a/src/MESONT/pair_mesocnt_viscous.cpp +++ b/src/MESONT/pair_mesocnt_viscous.cpp @@ -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