commit c5d7f32d541498aae2eb4760932c60af582850b4
parent d2d3eb7647c310df4ea58beac2db4b2e4fe41f44
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Thu, 14 Sep 2017 14:29:44 +0200
Add an error exit for some additional inconsistant realisations.
When the radiative path ends while being inside a non-atmosphere medium.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/ssol_solver.c b/src/ssol_solver.c
@@ -891,7 +891,10 @@ trace_radiative_path
if (res != RES_OK) goto error;
}
last_segment = 1; /* Path reached its last segment */
- ASSERT(in_atm);
+ if(!in_atm) {
+ log_error(scn->dev, "Inconsistent medium description.\n");
+ return RES_BAD_OP;
+ }
}
/* Don't change prev_outgoing weigths nor record segment absorption until