commit e93f02d59d25ad50e7b7c01c2316cfb962521feb
parent 89dd2f49aa916fadf28098473ecb5f8570bba466
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 19 Jan 2024 14:41:36 +0100
Add a variable counting the number of WoS steps
This allows you to debug when something goes wrong: in the debugger, you
can conditionally interrupt execution according to this number of steps.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/sdis_heat_path_conductive_wos_Xd.h b/src/sdis_heat_path_conductive_wos_Xd.h
@@ -283,6 +283,7 @@ XD(conductive_path_wos)
struct solid_props props = SOLID_PROPS_NULL;
/* Miscellaneous */
+ size_t ndiffusion_steps = 0; /* For debug */
int eval_green = 0;
res_T res = RES_OK;
(void)ctx; /* Avoid the "unused variable" warning */
@@ -327,6 +328,8 @@ XD(conductive_path_wos)
T->done = 1;
break;
}
+
+ ++ndiffusion_steps;
}
T->func = XD(boundary_path);