Skip to content

Commit

Permalink
- fix output format "ia" for strings
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24609 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Feb 17, 2015
1 parent 900d0e1 commit 4811323
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -278,13 +278,13 @@ void ia_emit(simulation_result *self, DATA *data)
for(i=0; i<data->modelData.nVariablesString; i++) if(!data->modelData.stringVarsData[i].filterOutput)
{
strLength = MMC_STRLEN((data->localData[0])->stringVars[i]) + 1;
memcpy(msgDATA+offset, (data->localData[0])->stringVars[i], strLength); offset += strLength;
memcpy(msgDATA+offset, MMC_STRINGDATA((data->localData[0])->stringVars[i]), strLength); offset += strLength;
}

for(i=0; i<data->modelData.nAliasString; i++) if(!data->modelData.stringAlias[i].filterOutput && data->modelData.stringAlias[i].aliasType != 1)
{
strLength = MMC_STRLEN((data->localData[0])->stringVars[data->modelData.stringAlias[i].nameID]) + 1;
memcpy(msgDATA+offset, (data->localData[0])->stringVars[data->modelData.stringAlias[i].nameID], strLength); offset += strLength;
memcpy(msgDATA+offset, MMC_STRINGDATA((data->localData[0])->stringVars[data->modelData.stringAlias[i].nameID]), strLength); offset += strLength;
}

communicateMsg(4, msgSIZE, msgDATA);
Expand Down

0 comments on commit 4811323

Please sign in to comment.