numerics: add a set internal solver (for python interface)
@@ -957,3 +957,17 @@ SolverOptions * solver_options_get_internal_solver(SolverOptions * options, size
return options->internalSolvers[n];
}
+void solver_options_set_internal_solver(SolverOptions * options,
+ size_t n,
+ SolverOptions* NSO)
+{
+ if(n+1 > options->numberOfInternalSolvers)
+ {
+ printf("solver_options_set_internal_solver : the index must be between 0 and options->numberOfInternalSolvers -1 ");
+ }
+ else
+ {
+ options->internalSolvers[n] = NSO;
+ }
+}
+
