Skip to content

Commit

Permalink
- fix the gnuplot on Windows in simulation_modelinfo.c
Browse files Browse the repository at this point in the history
- get rid of the warninging in simulation_result_mat.cpp

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8090 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Mar 4, 2011
1 parent cf3e038 commit e6ddb2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions c_runtime/simulation_modelinfo.c
Expand Up @@ -237,11 +237,11 @@ int printModelInfo(DATA *data, const char *filename, const char *plotfile, const
char *buf;
int genHtmlRes;
omhome = getenv("OPENMODELICAHOME");
buf = malloc(200 + 2*strlen(plotfile) + 2*(omhome ? strlen(omhome) : 0));
buf = malloc(230 + 2*strlen(plotfile) + 2*(omhome ? strlen(omhome) : 0));
assert(buf);
#if defined(__MINGW32__) || defined(_MSC_VER)
if (omhome) {
sprintf(buf, "%s/lib/libexec/gnuplot/binary/gnuplot.exe %s", omhome, plotfile);
sprintf(buf, "%s/lib/omc/libexec/gnuplot/binary/gnuplot.exe %s", omhome, plotfile);
fclose(plotCommands);
if (0 != system(buf)) {
fprintf(stderr, "Warning: Plot command failed: %s\n", buf);
Expand Down
2 changes: 1 addition & 1 deletion c_runtime/simulation_result_mat.cpp
Expand Up @@ -80,7 +80,7 @@ simulation_result_mat::simulation_result_mat(const char* filename,
{
const char Aclass[] = "A1 bt. ir1 na Tj re ac nt so r y ";

const struct omc_varInfo** names;
const struct omc_varInfo** names = NULL;
const int nParams = globalData->nParameters+globalData->intVariables.nParameters
+globalData->boolVariables.nParameters;

Expand Down

0 comments on commit e6ddb2e

Please sign in to comment.