Skip to content

Commit

Permalink
Fix resourceURI for FMI 2.0 ME
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sommer committed Aug 19, 2024
1 parent faf5a31 commit 674667c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions fmusim/FMI2MESimulation.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ FMIStatus FMI2MESimulate(const FMISimulationSettings* s) {

FMIStatus status = FMIOK;

FMIInstance* S = s->S;

const bool needsCompletedIntegratorStep = s->modelDescription->modelExchange->needsCompletedIntegratorStep;

char resourceURI[FMI_PATH_MAX] = "";

#ifdef _WIN32
Expand All @@ -26,6 +22,12 @@ FMIStatus FMI2MESimulate(const FMISimulationSettings* s) {
snprintf(resourceURI, FMI_PATH_MAX, "%s/resources/", s->unzipdir);
#endif

CALL(FMIPathToURI(resourceURI, resourceURI, FMI_PATH_MAX));

FMIInstance* S = s->S;

const bool needsCompletedIntegratorStep = s->modelDescription->modelExchange->needsCompletedIntegratorStep;

fmi2Real time;

bool stateEvent = false;
Expand Down

0 comments on commit 674667c

Please sign in to comment.