stardis-test

Test Stardis behaviors
git clone git://git.meso-star.fr/stardis-test.git
Log | Files | Refs | README | LICENSE

commit fc53a6024328f0c61f5284cb7d2127356f93cc0d
parent 776fcbb9116ab52d58a06b3a4e72f778ca9cce16
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Sun, 14 Apr 2024 16:39:30 +0200

Fix argument parsing for programmable radiative environment

The -h option was not defined as a valid input argument.

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

diff --git a/src/sadist_lib_radenv_1d.c b/src/sadist_lib_radenv_1d.c @@ -91,8 +91,8 @@ parse_args /* Check pre-conditions */ ASSERT(ctx && radenv); - optind = 1;; - while((opt = getopt(argc, argv, "t:r:")) != -1) { + optind = 1; + while((opt = getopt(argc, argv, "ht:r:")) != -1) { switch(opt) { case 'h': print_usage(stdout, ctx->name); @@ -163,7 +163,7 @@ stardis_release_data(void* data) } /******************************************************************************* - * External source + * Radiative environment ******************************************************************************/ double /* [K] */ stardis_radiative_env_temperature(const double dir[3], void* data)