Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Fix bug in homotopy solver
Browse files Browse the repository at this point in the history
Do not discard the solution at the beginning of each iteration step.
  • Loading branch information
ptaeuber authored and OpenModelica-Hudson committed Sep 25, 2017
1 parent 4b9c136 commit 0512a10
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1884,6 +1884,7 @@ int solveHomotopy(DATA *data, threadData_t *threadData, int sysNumber)
solverData->timeValue = data->localData[0]->timeValue;
solverData->minValue = systemData->min;
solverData->maxValue = systemData->max;
solverData->info = 0;

vecConst(solverData->m,1.0,solverData->ones);

Expand Down Expand Up @@ -2022,7 +2023,6 @@ int solveHomotopy(DATA *data, threadData_t *threadData, int sysNumber)
{
giveUp = 1;

solverData->info = 0;
/*if (!skipNewton) newtonAlgorithm(solverData, solverData->x); */
if (!skipNewton){

Expand Down

0 comments on commit 0512a10

Please sign in to comment.