try to suppress false positive from static code analysis (natom is always > 0)

This commit is contained in:
Axel Kohlmeyer
2025-06-23 19:21:00 -04:00
parent 8305c97b69
commit 750e663be8

View File

@ -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");