From bb0ead0ee3549dd9eb95be91d4d8a1df824fd3d1 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 24 Sep 2024 10:56:46 -0400 Subject: [PATCH] fix cut-n-paste bug --- src/fix_adapt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fix_adapt.cpp b/src/fix_adapt.cpp index c725707b29..9144ecde71 100644 --- a/src/fix_adapt.cpp +++ b/src/fix_adapt.cpp @@ -220,7 +220,7 @@ FixAdapt::FixAdapt(LAMMPS *lmp, int narg, char **arg) : // allocate angle style arrays: - n = atom->nbondtypes; + n = atom->nangletypes; for (int m = 0; m < nadapt; ++m) if (adapt[m].which == ANGLE) memory->create(adapt[m].vector_orig,n+1,"adapt:vector_orig"); }