Skip to content

Commit dd3c9f1

Browse files
committed
- fix Windows build (ansi C).
- small fix to CPP Makefile.omdev.mingw. git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16394 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 388b23c commit dd3c9f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SimulationRuntime/c/simulation/solver/nonlinearSolverHybrd.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,9 @@ int solveHybrd(DATA *data, int sysNumber)
643643
/* solution found */
644644
if(solverData->info == 1 || xerror <= local_tol || xerror_scaled <= local_tol)
645645
{
646-
success = 1;
646+
int scaling;
647+
648+
success = 1;
647649
nfunc_evals += solverData->nfev;
648650
if(ACTIVE_STREAM(LOG_NLS))
649651
{
@@ -655,7 +657,7 @@ int solveHybrd(DATA *data, int sysNumber)
655657
printStatus(solverData, &nfunc_evals, &xerror, &xerror_scaled, LOG_NLS);
656658

657659
}
658-
int scaling = solverData->useXScaling;
660+
scaling = solverData->useXScaling;
659661
if(scaling)
660662
solverData->useXScaling = 0;
661663

0 commit comments

Comments
 (0)