Skip to content

Commit 1ea3bb0

Browse files
committed
Fix kinsol dummy wrapper
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19178 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent ded5eeb commit 1ea3bb0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SimulationRuntime/c/simulation/solver/kinsolSolver.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,19 +303,19 @@
303303

304304
int nls_kinsol_allocate(DATA *data, NONLINEAR_SYSTEM_DATA *nlsData)
305305
{
306-
throwStreamPrint("no sundials/kinsol support activated");
306+
throwStreamPrint(data->threadData,"no sundials/kinsol support activated");
307307
return 0;
308308
}
309309

310310
int nls_kinsol_free(NONLINEAR_SYSTEM_DATA *nlsData)
311311
{
312-
throwStreamPrint("no sundials/kinsol support activated");
312+
throwStreamPrint(data->threadData,"no sundials/kinsol support activated");
313313
return 0;
314314
}
315315

316316
int nonlinearSolve_kinsol(DATA *data, int sysNumber)
317317
{
318-
throwStreamPrint("no sundials/kinsol support activated");
318+
throwStreamPrint(data->threadData,"no sundials/kinsol support activated");
319319
return 0;
320320
}
321321

SimulationRuntime/c/simulation/solver/nonlinearSolverNewton.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ static int _omc_newton(integer* n, double *x, double *fvec, double* eps, double*
430430

431431
while(*info >= 0)
432432
{
433-
debugStreamPrint(LOG_NLS_V, 0, "**** start Iteration: %d *****", *maxfev-l);
433+
debugStreamPrint(LOG_NLS_V, 0, "**** start Iteration: %d *****", (int) *maxfev-l);
434434
/* calculate the function values */
435435
(*f)(n, x, fvec, &iflag, userdata,currentSys);
436436
(*nfev)++;

0 commit comments

Comments
 (0)