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

Commit 21ce932

Browse files
ptaeuberOpenModelica-Hudson
authored andcommitted
Fix bug in homotopy method
Do not set lambda=1 in each step when using global homotopy
1 parent 441b181 commit 21ce932

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SimulationRuntime/c/simulation/solver/nonlinearSystem.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,9 @@ int solve_nonlinear_system(DATA *data, threadData_t *threadData, int sysNumber)
848848
#endif
849849
}
850850

851-
data->simulationInfo->lambda = 1.0;
851+
if(data->callback->useHomotopy == 0)
852+
data->simulationInfo->lambda = 1.0;
853+
852854
/* SOLVE! */
853855
nonlinsys->solved = solveNLS(data, threadData, sysNumber);
854856

0 commit comments

Comments
 (0)