htrdr

Solving radiative transfer in heterogeneous media
git clone git://git.meso-star.fr/htrdr.git
Log | Files | Refs | README | LICENSE

commit 0064745d8e23e3a31bacde3aaac258adcf09397c
parent 3fd4b36754e75b676f848fb354a1d114c5ff8a96
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 26 Feb 2020 11:50:40 +0100

Make silent the htsky library for processes whose rank is not 0

Diffstat:
Msrc/htrdr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/htrdr.c b/src/htrdr.c @@ -471,7 +471,7 @@ htrdr_init htsky_args.optical_thickness = args->optical_thickness; htsky_args.nthreads = htrdr->nthreads; htsky_args.repeat_clouds = args->repeat_clouds; - htsky_args.verbose = args->verbose; + htsky_args.verbose = htrdr->mpi_rank == 0 ? args->verbose : 0; res = htsky_create(&htrdr->logger, htrdr->allocator, &htsky_args, &htrdr->sky); if(res != RES_OK) goto error;