tmax_depth_simple_shear: assign values NAN values to detect uninitialization at… | |
git clone git://src.adamsgaard.dk/cngf-pf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0526958f21b76c192ee129e28352355fbcd99d69 | |
parent 86bfb546fc4ee751ba362a88bd1705e97bf82f5a | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 17 Aug 2021 10:54:54 +0200 | |
max_depth_simple_shear: assign values NAN values to detect uninitialization at … | |
Diffstat: | |
M max_depth_simple_shear.c | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/max_depth_simple_shear.c b/max_depth_simple_shear.c | |
t@@ -82,7 +82,8 @@ zbrent(struct simulation *sim, | |
double tol) | |
{ | |
int iter; | |
- double a, b, c, d, e, min1, min2, fa, fb, fc, p, q, r, s, tol1, xm; | |
+ double a, b, c, d = NAN, e = NAN, min1, min2, | |
+ fa, fb, fc, p, q, r, s, tol1, xm; | |
a = x1; | |
b = x2; |