From 750e663be83c66e8b5190ab97adf08f8f478f11f Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 23 Jun 2025 19:21:00 -0400 Subject: [PATCH] try to suppress false positive from static code analysis (natom is always > 0) --- src/GRANULAR/fix_pour.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GRANULAR/fix_pour.cpp b/src/GRANULAR/fix_pour.cpp index d7ab40b658..b6663d80e1 100644 --- a/src/GRANULAR/fix_pour.cpp +++ b/src/GRANULAR/fix_pour.cpp @@ -684,7 +684,7 @@ void FixPour::pre_exchange() // warn if not successful with all insertions b/c too many attempts int ninserted_atoms = nnear - nprevious; - int ninserted_mols = ninserted_atoms / natom; + int ninserted_mols = ninserted_atoms / natom; // clang_sa_ignore [core.DivideZero] ninserted += ninserted_mols; if (ninserted_mols < nnew && me == 0) error->warning(FLERR, "Fewer insertions than requested");