stardis

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

commit 8f143de5e6eddd352992d0a03ab587102167d7bc
parent fe7139f7e42165631fbfeadb59d6ece8456c80a4
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri,  1 Mar 2024 18:37:49 +0100

Fix of error when parsing a programmable external source

We detected an error, printed an error message, but did not set the
output state to error.

Diffstat:
Msrc/stardis-parsing.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/stardis-parsing.c b/src/stardis-parsing.c @@ -2186,7 +2186,9 @@ process_spherical_source_prog(struct stardis* stardis, wordexp_t* pwordexp) if(idx < pwordexp->we_wordc && strcasecmp(pwordexp->we_wordv[idx], "PROG_PARAMS")) { logger_print(stardis->logger, LOG_ERROR, - "Expecting PROG_PARAMS keyword while parsing `%s'.\n", arg); + "Expecting PROG_PARAMS keyword while parsing `%s'.\n", + pwordexp->we_wordv[idx]); + res = RES_BAD_ARG; goto error; }