Skip to content

Commit

Permalink
- fixed bug in solving non-linear systems
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13656 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Oct 26, 2012
1 parent c551b35 commit 288d72d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SimulationRuntime/c/math-support/nonlinearSolverHybrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,10 @@ int solveHybrd(DATA *data, int sysNumber) {
}

/* check if system is already solved then do nothing */
solverData->useXScaling = 0;
wrapper_fvec_hybrd(&solverData->n, systemData->nlsx, solverData->fvec, &solverData->info, data);
xerror = enorm_(&solverData->n, solverData->fvec);
solverData->useXScaling = 1;
/* solution found */
if (xerror <= local_tol) {
success = 1;
Expand Down

0 comments on commit 288d72d

Please sign in to comment.