stardis

Perform coupled heat transfer calculations
git clone git://git.meso-star.fr/stardis.git
Log | Files | Refs | README | LICENSE

commit 4bbdc3be5aa9b03840b9ac5b17bd5cbcb5c70782
parent a864494d1164daedc31b98eac59569223ea5aee5
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Thu, 24 Jan 2019 09:49:51 +0100

Default to #threads = 1 in debug

Diffstat:
Msrc/args.h | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/args.h b/src/args.h @@ -30,8 +30,13 @@ struct args{ double radiative_temp[2]; char* camera; }; +#ifdef NDEBUG +#define DEFAULT_NTHREADS SDIS_NTHREADS_DEFAULT +#else +#define DEFAULT_NTHREADS 1 +#endif #define ARGS_DEFAULT__ {\ - NULL, NULL, 10000, 1,\ + NULL, NULL, 10000, DEFAULT_NTHREADS,\ { { {0.0, 0.0, 0.0}, 0x7FF0000000000000 /* probe[3]=INF */}},\ PROBE_COMPUTE, 1.0, {300.0, 300.0}, NULL} static const struct args ARGS_DEFAULT = ARGS_DEFAULT__;