Skip to content

Commit

Permalink
Skip clocks in FMISample()
Browse files Browse the repository at this point in the history
fixes #628
  • Loading branch information
t-sommer committed Dec 3, 2024
1 parent af92424 commit a3a9e17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fmusim/FMIRecorder.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ FMIStatus FMISample(FMIInstance* instance, double time, FMIRecorder* recorder) {

CALL(FMICalloc(&values, info->nValues, FMISizeOfVariableType(type, recorder->instance->fmiMajorVersion)));

CALL(FMIGetValues(recorder->instance, type, info->valueReferences, info->nVariables, row->sizes, values, info->nValues));
if (type != FMIClockType) { // skip clocks
CALL(FMIGetValues(recorder->instance, type, info->valueReferences, info->nVariables, row->sizes, values, info->nValues));
}

if (type == FMIBinaryType) {

Expand Down

0 comments on commit a3a9e17

Please sign in to comment.