From 21fb50f37b264c7ec33cb34be97b76fbd0169578 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 18 Jun 2023 07:40:04 -0400 Subject: [PATCH] correct logic bug --- src/compute_chunk_spread_atom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compute_chunk_spread_atom.cpp b/src/compute_chunk_spread_atom.cpp index 933cf0af0c..53b8517c22 100644 --- a/src/compute_chunk_spread_atom.cpp +++ b/src/compute_chunk_spread_atom.cpp @@ -106,7 +106,7 @@ ComputeChunkSpreadAtom(LAMMPS *lmp, int narg, char **arg) : } else if (val.which == ArgInfo::FIX) { auto ifix = modify->get_fix_by_id(val.id); - if (ifix) + if (!ifix) error->all(FLERR,"Fix ID {} for compute chunk/spread/atom does not exist", val.id); if (val.argindex == 0) { if (!ifix->vector_flag)