stardis

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

commit 98af64060e7b7684301b7c3cf677b4f265353d59
parent 4bbdc3be5aa9b03840b9ac5b17bd5cbcb5c70782
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Thu, 24 Jan 2019 09:50:44 +0100

Fix media deduplication

Diffstat:
Msrc/stardis-app.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/stardis-app.c b/src/stardis-app.c @@ -177,6 +177,8 @@ parse_medium_line(char* line, char** stl_filename, struct description* desc) tk = strtok(NULL, "\""); /* Volumic Power is optional */ + desc->d.solid.power = NULL; + desc->d.solid.has_power = 0; if (tk && *(tk + strspn(tk, " \t")) == '\0') { /* Depending of the number of spaces before '"' strtok should * be called once or twice */ @@ -185,6 +187,8 @@ parse_medium_line(char* line, char** stl_filename, struct description* desc) if (tk) { desc->d.solid.power = malloc(strlen(tk) + 1); strcpy(desc->d.solid.power, tk); + /* Can be changed aftwerwards if compiled to constant 0 */ + desc->d.solid.has_power = 1; } } else if (strcmp(tk, "FLUID") == 0) {