From 45ea9268862b087164fd19112d318789b02b40bd Mon Sep 17 00:00:00 2001 From: Joshua Christopher Date: Mon, 2 Feb 2026 16:30:56 -0500 Subject: [PATCH] Initialize M0 and M1 to 0.0 in sootModel_SECT.cc The C++ language standard does not guarantee declared double precision floats are initialized to zero. This change ensures that correct M0 and M1 values are computed regardless of compiler implementation. --- src/sootModel_SECT.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sootModel_SECT.cc b/src/sootModel_SECT.cc index ae8059f..0683abb 100644 --- a/src/sootModel_SECT.cc +++ b/src/sootModel_SECT.cc @@ -326,7 +326,7 @@ void sootModel_SECT::setSourceTerms(state &state) { double sootModel_SECT::get_M0_sectional(const state &state) { - double M0; + double M0 = 0.0; for (size_t k=0; k