htrdr

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

commit 50648b962f8d0ece72deaf3b00f091ecaad894ca
parent d6f33e1d485d9855b273ea6ad0c1d6cfb02b09bf
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 23 Oct 2018 17:26:06 +0200

Force deactivating the cached grids with MPI

Diffstat:
Msrc/htrdr.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/htrdr.c b/src/htrdr.c @@ -326,6 +326,11 @@ htrdr_init res = init_mpi(htrdr); if(res != RES_OK) goto error; + if(htrdr->cache_grids && htrdr->mpi_nprocs != 1) { + htrdr_log_warn(htrdr, "cached grids are not supported in a MPI execution.\n"); + htrdr->cache_grids = 0; + } + if((size_t)htrdr->mpi_nprocs > htrdr->spp) { htrdr_log_err(htrdr, "%s: insufficient number samples per pixel `%lu': it must be greater or " @@ -751,3 +756,4 @@ exit: error: goto exit; } +