stardis

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

commit 9bf78015eab035ab85dbe89125cb2c3c71af7098
parent 391136ba421a04359323faa7bd2345b3b2ca6860
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Mon, 11 May 2020 09:47:58 +0200

Fix command line error parsing

Diffstat:
Msrc/stardis-output.c | 1-
Msrc/stardis-parsing.c | 2+-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/stardis-output.c b/src/stardis-output.c @@ -886,7 +886,6 @@ dump_enclosure_related_stuff_at_the_end_of_vtk if(e == encs[SENC3D_FRONT] || e == encs[SENC3D_BACK]) fprintf(stream, "%d ", (char)enc_status[e]); else fprintf(stream, "0 "); - } fprintf(stream, "\n"); } diff --git a/src/stardis-parsing.c b/src/stardis-parsing.c @@ -498,8 +498,8 @@ parse_args case '?': /* Unreconised option */ { char* ptr = strchr(option_list, optopt); + res = RES_BAD_ARG; if(ptr && ptr[1] == ':') { - res = RES_BAD_ARG; logger_print(args->logger, LOG_ERROR, "Missing argument for option -%c\n", optopt);