commit e07f55a3bdc03822f974fc1980be0ece02f4cca5
parent 9f0fca34a1281dc54521c04c852c940f48601da0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 25 Nov 2022 15:42:08 +0100
htrdr-planeto: making the ground option mandatory
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/planeto/htrdr_planeto_args.c b/src/planeto/htrdr_planeto_args.c
@@ -108,7 +108,7 @@ print_help(const char* cmd)
"Usage: %s [-dfhv] [-s spectral_domain] [-t threads]\n"
" [-T optical_thickness] [-V octree_definition]\n"
" [-O octrees_storage] [-o output] [-C camera]\n"
-" [-S source] [-G ground] [-a aerosol]... -g gas\n", cmd);
+" [-S source] [-a aerosol]... -G ground -g gas\n", cmd);
printf(
"Simulate radiative transfer in heterogeneous 3D planetary atmosphere.\n"
"See htrdr-planeto(1) man page for details\n\n");
@@ -563,6 +563,12 @@ htrdr_planeto_args_init(struct htrdr_planeto_args* args, int argc, char** argv)
goto error;
}
+ res = check_ground_args(&args->ground);
+ if(res != RES_OK) {
+ fprintf(stderr, "Missing ground definition -- option '-G'\n");
+ goto error;
+ }
+
if(args->output_type != HTRDR_PLANETO_ARGS_OUTPUT_OCTREES) {
res = check_ground_args(&args->ground);
if(res != RES_OK) {