Skip to content

Commit 73a3cb3

Browse files
authored
More testing found a bug in kml_iss implementation, herewith fixed (#315)
Hotfix for the previous commit -- more usage of the KML transition path found that certain getters and setters seemed to have no effect, which is fixed with this MR. The expected impact of this bug is expected minimal, as there has been minimal time passed while the bug was present in the stable branch.
1 parent b560f19 commit 73a3cb3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/transition/kml_iss.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,31 +332,31 @@ int KML_CG_PREFIXED( SetSII )(
332332
KmlSolverTask **handle, KML_SOLVER_PARAM param, const int *data, int nd
333333
) {
334334
KMLSS_SET_ARG( nd, param, KMLSS_MAX_ITERATION_COUNT,
335-
sparse_cg_set_max_iter_count_sii( handle, *data ) );
335+
sparse_cg_set_max_iter_count_sii( *handle, *data ) );
336336
}
337337

338338
int KML_CG_PREFIXED( SetSIS )(
339339
KmlSolverTask **handle, KML_SOLVER_PARAM param,
340340
const float *data, int nd
341341
) {
342342
KMLSS_SET_ARG( nd, param, KMLSS_THRESHOLD,
343-
sparse_cg_set_tolerance_sii( handle, *data ) );
343+
sparse_cg_set_tolerance_sii( *handle, *data ) );
344344
}
345345

346346
int KML_CG_PREFIXED( SetDII )(
347347
KmlSolverTask **handle, KML_SOLVER_PARAM param,
348348
const int *data, int nd
349349
) {
350350
KMLSS_SET_ARG( nd, param, KMLSS_MAX_ITERATION_COUNT,
351-
sparse_cg_set_max_iter_count_dii( handle, *data ) );
351+
sparse_cg_set_max_iter_count_dii( *handle, *data ) );
352352
}
353353

354354
int KML_CG_PREFIXED( SetDID )(
355355
KmlSolverTask **handle, KML_SOLVER_PARAM param,
356356
const double *data, int nd
357357
) {
358358
KMLSS_SET_ARG( nd, param, KMLSS_THRESHOLD,
359-
sparse_cg_set_tolerance_dii( handle, *data ) );
359+
sparse_cg_set_tolerance_dii( *handle, *data ) );
360360
}
361361

362362

@@ -424,7 +424,7 @@ int KML_CG_PREFIXED( GetSIS )(
424424
float *data, int nd
425425
) {
426426
KMLSS_GET_ARG( nd, param, KMLSS_TOLERANCE,
427-
sparse_cg_get_residual_sii(*handle, data), ret );
427+
sparse_cg_get_residual_sii( *handle, data ), ret );
428428
return ret;
429429
}
430430

@@ -433,7 +433,7 @@ int KML_CG_PREFIXED( GetDID )(
433433
double *data, int nd
434434
) {
435435
KMLSS_GET_ARG( nd, param, KMLSS_TOLERANCE,
436-
sparse_cg_get_residual_dii(*handle, data), ret );
436+
sparse_cg_get_residual_dii( *handle, data ), ret );
437437
return ret;
438438
}
439439

0 commit comments

Comments
 (0)