commit 3941fb290510051f2647273cf1d460ff83ea0761
parent 76363a31b24196e7a5030073d48b3a865ee9a289
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Thu, 24 Sep 2020 16:40:35 +0200
Add time range to green outputs
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/stardis-output.c b/src/stardis-output.c
@@ -565,9 +565,13 @@ dump_green_bin
if(name_pool_sz)
FW(name_pool, name_pool_sz);
+ /* Write radiative temperatures */
FW(&stardis->ambient_temp, 1);
FW(&stardis->ref_temp, 1);
+ /* Write time range */
+ FW(&stardis->time_range, 2);
+
w_ctx.alloc = stardis->allocator;
w_ctx.desc = &stardis->descriptions;
htable_weigth_init(NULL, &w_ctx.pw);
@@ -729,6 +733,9 @@ dump_green_ascii
/* Output counts */
fprintf(stream, "---BEGIN GREEN---\n");
+ fprintf(stream, "# time range\n");
+ fprintf(stream, "%g %g\n",
+ SPLIT2(stardis->time_range));
fprintf(stream,
"# #solids #fluids #t_boundaries #h_boundaries #f_boundaries #ok #failures\n");
fprintf(stream, "%u %u %u %u %u %u %u\n",