Skip to content

Commit

Permalink
Fix bug in homotopy method
Browse files Browse the repository at this point in the history
Do not set lambda=1 in each step when using global homotopy
  • Loading branch information
ptaeuber authored and OpenModelica-Hudson committed Jul 26, 2017
1 parent 441b181 commit 21ce932
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SimulationRuntime/c/simulation/solver/nonlinearSystem.c
Expand Up @@ -848,7 +848,9 @@ int solve_nonlinear_system(DATA *data, threadData_t *threadData, int sysNumber)
#endif
}

data->simulationInfo->lambda = 1.0;
if(data->callback->useHomotopy == 0)
data->simulationInfo->lambda = 1.0;

/* SOLVE! */
nonlinsys->solved = solveNLS(data, threadData, sysNumber);

Expand Down

0 comments on commit 21ce932

Please sign in to comment.