tInitialize variable to NAN to avoid compile warning - cngf-pf - continuum mode… | |
git clone git://src.adamsgaard.dk/cngf-pf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0ba336be66e2f93501bf13a1b054d07fc48c3889 | |
parent 7e9abfc893a8e6fbb4e1a9bd83669a41c484fd8d | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 2 Apr 2020 10:15:39 +0200 | |
Initialize variable to NAN to avoid compile warning | |
Diffstat: | |
M max_depth_simple_shear.c | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/max_depth_simple_shear.c b/max_depth_simple_shear.c | |
t@@ -76,6 +76,7 @@ double zbrent(double d_s, | |
int iter; | |
double a, b, c, d, e, min1, min2, fa, fb, fc, p, q, r, s, tol1, xm; | |
+ e = NAN; | |
a = x1; b=x2; c=x2; | |
fa = (*f)(d_s, a); | |
fb = (*f)(d_s, b); |