Skip to content

Commit a0ae2cd

Browse files
committed
refactor float32 get/set
1 parent 9c2ba4b commit a0ae2cd

1 file changed

Lines changed: 4 additions & 24 deletions

File tree

export/src/fmu4cpp/fmi3.cpp

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -318,18 +318,6 @@ fmi3Status fmi3GetInt32(
318318
}
319319
}
320320

321-
fmi3Status fmi3GetFloat32(fmi3Instance c,
322-
const fmi3ValueReference valueReferences[],
323-
size_t nValueReferences,
324-
fmi3Float32 values[],
325-
size_t nValues) {
326-
327-
const auto component = static_cast<Fmi3Component *>(c);
328-
329-
component->logger->log(toCommonStatusFromFmi3(fmi3Error), "Unsupported function fmi3GetFloat32");
330-
return fmi3Error;
331-
}
332-
333321
fmi3Status fmi3GetFloat64(
334322
fmi3Instance c,
335323
const fmi3ValueReference vr[],
@@ -410,18 +398,6 @@ fmi3Status fmi3SetInt32(
410398
}
411399
}
412400

413-
fmi3Status fmi3SetFloat32(
414-
fmi3Instance c,
415-
const fmi3ValueReference vr[],
416-
size_t nvr,
417-
const fmi3Float32 value[],
418-
size_t nValues) {
419-
420-
const auto component = static_cast<Fmi3Component *>(c);
421-
component->logger->log(toCommonStatusFromFmi3(fmi3Error), "Unsupported function fmi3SetFloat32");
422-
return fmi3Error;
423-
}
424-
425401
fmi3Status fmi3SetFloat64(
426402
fmi3Instance c,
427403
const fmi3ValueReference vr[],
@@ -526,6 +502,10 @@ NOT_IMPLEMENTED_GETTER(Int8);
526502
NOT_IMPLEMENTED_GETTER(Int16);
527503
NOT_IMPLEMENTED_GETTER(Int64);
528504

505+
NOT_IMPLEMENTED_SETTER(Float32);
506+
NOT_IMPLEMENTED_GETTER(Float32);
507+
508+
529509
fmi3Status fmi3SetDebugLogging(fmi3Instance c,
530510
fmi3Boolean loggingOn,
531511
size_t /*nCategories*/,

0 commit comments

Comments
 (0)