diff --git a/src/ELECTRODE/fix_electrode_conp.cpp b/src/ELECTRODE/fix_electrode_conp.cpp index 48d0dfdb7c..5e92af7a82 100644 --- a/src/ELECTRODE/fix_electrode_conp.cpp +++ b/src/ELECTRODE/fix_electrode_conp.cpp @@ -573,7 +573,7 @@ void FixElectrodeConp::setup_post_neighbor() if (read_mat) read_from_file(input_file_mat, elastance, "elastance"); else if (!read_inv) { - if (etypes_neighlists) neighbor->build_one(mat_neighlist, 0); + if (etypes_neighlists) neighbor->build_one(mat_neighlist); auto array_compute = std::unique_ptr(new ElectrodeMatrix(lmp, igroup, eta)); array_compute->setup(tag_to_iele, pair, mat_neighlist); if (etaflag) array_compute->setup_eta(eta_index); diff --git a/src/EXTRA-COMPUTE/compute_hma.cpp b/src/EXTRA-COMPUTE/compute_hma.cpp index 592c8501c1..8ddc413477 100644 --- a/src/EXTRA-COMPUTE/compute_hma.cpp +++ b/src/EXTRA-COMPUTE/compute_hma.cpp @@ -291,8 +291,7 @@ void ComputeHMA::compute_vector() double *special_coul = force->special_coul; int newton_pair = force->newton_pair; - if (update->firststep == update->ntimestep) neighbor->build_one(list,1); - else neighbor->build_one(list); + neighbor->build_one(list); int inum = list->inum; int *ilist = list->ilist; int *numneigh = list->numneigh;