htsky

Load and structure a vertically stratified atmosphere
git clone git://git.meso-star.fr/htsky.git
Log | Files | Refs | README | LICENSE

commit 94465b104794cf711ed3a42798eb6eaceea093c4
parent d2dca39eecce7f65cb52cc46029bf179991a92fb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 24 Jan 2020 16:12:52 +0100

Adjust the "build octree" message

Diffstat:
Msrc/htsky_cloud.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/htsky_cloud.c b/src/htsky_cloud.c @@ -588,6 +588,8 @@ cloud_setup progress = 0; omp_set_num_threads((int)sky->nthreads); + #define LOG_MSG "\033[2K\rComputing clouds data & building octrees: %3d%%" + log_info(sky, LOG_MSG, 0); #pragma omp parallel for schedule(dynamic, 1/*chunksize*/) for(ispecdata=0; (size_t)ispecdata<darray_specdata_size_get(&specdata); @@ -643,11 +645,11 @@ cloud_setup #pragma omp critical if(pcent > progress) { progress = pcent; - log_info(sky, "\033[2K\rCompute data & building octree: %3d%%", pcent); + log_info(sky, LOG_MSG, pcent); } } - log_info(sky, "\033[2K\rCompute data & building octree: 100%%\n"); - + log_info(sky, LOG_MSG"\n", 100); + #undef LOG_MSG exit: darray_specdata_release(&specdata);