Skip to content

Commit 5ed09dc

Browse files
committed
Remove C directives from get and set float64
1 parent eab65c3 commit 5ed09dc

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

onnx2fmu/template/model.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ Status getFloat64(ModelInstance *comp, ValueReference vr, double values[],
357357
ASSERT_NVALUES(1);
358358
values[(*index)++] = M(time);
359359
return OK;
360-
#if FMI_VERSION < 3
361360
// Inputs
362361
{%- for input in inputs %}
363362
{%- for scalar in input.scalarValues %}
@@ -385,7 +384,6 @@ Status getFloat64(ModelInstance *comp, ValueReference vr, double values[],
385384
return OK;
386385
{%- endfor %}
387386
{%- endfor %}
388-
#endif
389387
default:
390388
// Compose message for log with value reference
391389
logError(comp, "getFloat64: ValueReference %d not available.", vr);
@@ -403,7 +401,6 @@ Status setFloat64(ModelInstance *comp, ValueReference vr, const double values[],
403401
ASSERT_NVALUES(1);
404402
M(time) = values[(*index)++];
405403
return OK;
406-
#if FMI_VERSION < 3
407404
// Inputs
408405
{%- for input in inputs %}
409406
{%- for scalar in input.scalarValues %}
@@ -422,7 +419,6 @@ Status setFloat64(ModelInstance *comp, ValueReference vr, const double values[],
422419
return OK;
423420
{%- endfor %}
424421
{%- endfor %}
425-
#endif
426422
default:
427423
// Compose message for log with value reference
428424
logError(comp, "setFloat64: ValueReference %d not available.", vr);

0 commit comments

Comments
 (0)