Skip to content

Commit

Permalink
Define separator for homotopy path csv file
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaeuber authored and OpenModelica-Hudson committed May 8, 2017
1 parent 9f91701 commit 1ec58ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/solver/nonlinearSystem.c
Expand Up @@ -822,7 +822,7 @@ int solve_nonlinear_system(DATA *data, threadData_t *threadData, int sysNumber)
sprintf(buffer, "%s_homotopy_nls_%d.csv", data->modelData->modelFilePrefix, sysNumber);
infoStreamPrint(LOG_INIT, 0, "The homotopy path of system %d will be exported to %s.", sysNumber, buffer);
pFile = fopen(buffer, "wt");
fprintf(pFile, "%s,", "lambda");
fprintf(pFile, "\"sep=,\"\n%s,", "lambda");
for(j=0; j<nonlinsys->size; ++j)
fprintf(pFile, "%s,", modelInfoGetEquation(&data->modelData->modelDataXml, nonlinsys->equationIndex).vars[j]);
fprintf(pFile, "\n");
Expand Down

0 comments on commit 1ec58ad

Please sign in to comment.