Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24545 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Feb 12, 2015
1 parent ddf67c7 commit 8565fb8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/fmi/FMI2Common.c
Expand Up @@ -200,7 +200,7 @@ void fmi2SetBoolean_OMC(void* in_fmi2, int numberOfValueReferences, double* bool
FMI2ModelExchange* FMI2ME = (FMI2ModelExchange*)in_fmi2;
fmi2_value_reference_t* valuesReferences_int = real_to_fmi2_value_reference(numberOfValueReferences, booleanValuesReferences);
int* fmiBoolean = malloc(sizeof(int)*numberOfValueReferences);
fmi2_status_t status;
fmi2_status_t status;
signedchar_to_int(booleanValues, fmiBoolean, numberOfValueReferences);
status = fmi2_import_set_boolean(FMI2ME->FMIImportInstance, valuesReferences_int, numberOfValueReferences, fmiBoolean);
free(fmiBoolean);
Expand Down
4 changes: 2 additions & 2 deletions SimulationRuntime/c/fmi/FMI2ModelExchange.c
Expand Up @@ -84,8 +84,8 @@ void* FMI2ModelExchangeConstructor_OMC(int fmi_log_level, char* working_director
if (FMI2ME->FMIDebugLogging) {
int i;
size_t categoriesSize = 0;
fmi2_status_t debugLoggingStatus;
fmi2_string_t *categories;
fmi2_status_t debugLoggingStatus;
fmi2_string_t *categories;
/* Read the log categories size */
categoriesSize = fmi2_import_get_log_categories_num(FMI2ME->FMIImportInstance);
categories = (fmi2_string_t*)malloc(categoriesSize*sizeof(fmi2_string_t));
Expand Down
2 changes: 1 addition & 1 deletion SimulationRuntime/fmi/export/fmi2/fmu2_model_interface.c
Expand Up @@ -52,7 +52,7 @@ static fmi2String logCategoriesNames[] = {"logEvents", "logSingularLinearSystems
#define FILTERED_LOG(instance, status, categoryIndex, message, ...) if (isCategoryLogged(instance, categoryIndex)) \
instance->functions->logger(instance->functions->componentEnvironment, instance->instanceName, status, \
logCategoriesNames[categoryIndex], message, ##__VA_ARGS__);

// array of value references of states
#if NUMBER_OF_REALS>0
fmi2ValueReference vrStates[NUMBER_OF_STATES] = STATES;
Expand Down

0 comments on commit 8565fb8

Please sign in to comment.