commit 6bf9871c697e402e7189f19aca79d2831bcf94e4
parent d161a2d9a8021dc7f610f0538d58785afe469bd8
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 16 Apr 2020 14:26:26 +0200
Initialize residual for stress loop to NAN
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/simulation.c b/simulation.c
@@ -750,6 +750,7 @@ coupled_shear_solver(struct simulation *sim,
double res_norm, r_norm_max, mu_wall_orig;
double *r_norm;
+ res_norm = NAN;
r_norm_max = NAN;
r_norm = empty(sim->nz);
mu_wall_orig = sim->mu_wall;