Skip to content

Commit

Permalink
- Remove the eol comma separator from csv output.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23707 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Dec 9, 2014
1 parent 2e58dbd commit 10d936a
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -107,6 +107,7 @@ void omc_csv_emit(simulation_result *self, DATA *data)
/* there would no negation of a string happen */
fprintf(fout, formatstring, (data->localData[0])->stringVars[data->modelData.stringAlias[i].nameID]);
}
fseek(fout, -1, SEEK_CUR); // removes the eol comma separator
fprintf(fout, "\n");
rt_accumulate(SIM_TIMER_OUTPUT);
}
Expand Down Expand Up @@ -141,7 +142,8 @@ void omc_csv_init(simulation_result *self, DATA *data)
fprintf(fout, format, mData->booleanAlias[i].info.name);
for(i = 0; i < mData->nAliasString; i++) if(!mData->stringAlias[i].filterOutput && data->modelData.stringAlias[i].aliasType != 1)
fprintf(fout, format, mData->stringAlias[i].info.name);
fprintf(fout,"\n");
fseek(fout, -1, SEEK_CUR);
fseek(fout, -1, SEEK_CUR); // removes the eol comma separator
self->storage = fout;
}

Expand Down

0 comments on commit 10d936a

Please sign in to comment.