From bbab606a20d50b6f0b83e878e1e2e1bf6e976e0c Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Mon, 22 Apr 2019 09:32:27 -0500 Subject: [PATCH] take care of uninitialized value warning during compilation --- src/oneD/Sim1D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oneD/Sim1D.cpp b/src/oneD/Sim1D.cpp index 1d1565d08..b57d86f88 100644 --- a/src/oneD/Sim1D.cpp +++ b/src/oneD/Sim1D.cpp @@ -428,7 +428,7 @@ int Sim1D::setFixedTemperature(doublereal t) { int np = 0; vector_fp znew, xnew; - doublereal zfixed; + doublereal zfixed = 0.0; doublereal z1 = 0.0, z2 = 0.0, t1,t2; size_t m1 = 0; std::vector dsize;