htrdr

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

commit e61a60f36938ea1c34e4e478c6f53b67baa21e97
parent 7bc29c88b53c4396433e1686db141bca85b36fa0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri,  5 Mar 2021 10:11:48 +0100

Rm the "-l <laser>" option from mandatory combustion options

Diffstat:
Msrc/combustion/htrdr_combustion_args.c | 9+--------
1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/combustion/htrdr_combustion_args.c b/src/combustion/htrdr_combustion_args.c @@ -28,7 +28,7 @@ print_help(const char* cmd) { ASSERT(cmd); printf( -"Usage: %s [<options>] -l <laser> -m TETRAHEDRA -p THERMOPROPS -r REFRACT_IDS\n", +"Usage: %s [<options>] -m TETRAHEDRA -p THERMOPROPS -r REFRACT_IDS\n", cmd); printf( "Render a monochromatic image within a sooting flame described according\n" @@ -156,7 +156,6 @@ htrdr_combustion_args_init int argc, char** argv) { - int laser_is_defined = 0; int opt; res_T res = RES_OK; ASSERT(args && argc && argv); @@ -195,7 +194,6 @@ htrdr_combustion_args_init break; case 'l': res = htrdr_args_rectangle_parse(&args->laser, optarg); - laser_is_defined = 1; break; case 'm': args->path_tetra = optarg; break; case 'N': args->precompute_normals = 1; break; @@ -229,11 +227,6 @@ htrdr_combustion_args_init } } - if(!args->dump_volumetric_acceleration_structure && !laser_is_defined) { - fprintf(stderr, "Missing the laser definition -- option '-l'\n"); - res = RES_BAD_ARG; - goto error; - } if(!args->path_tetra) { fprintf(stderr, "Missing the volumetric mesh -- option '-m'\n"); res = RES_BAD_ARG;