aboutsummaryrefslogtreecommitdiff
path: root/nlsolve.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-04-22 12:58:22 +0200
committerAnton Khirnov <anton@khirnov.net>2018-04-22 13:08:24 +0200
commit3910a4ee954866524bab129dfa4a0403f2ebe164 (patch)
treee98f90b917d8a7a904bedaf0cf6824aaaec5ed59 /nlsolve.c
parent85ee8c05d6953bb361e678aae8fa965c27b8bd0f (diff)
Rewrite constraint evaluation code.
Make it much more efficient and easier to add other seed functions.
Diffstat (limited to 'nlsolve.c')
-rw-r--r--nlsolve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nlsolve.c b/nlsolve.c
index 708cd08..2137767 100644
--- a/nlsolve.c
+++ b/nlsolve.c
@@ -235,7 +235,7 @@ finish:
return ret;
}
-void tdi_solver_print_stats(NLSolveContext *ctx)
+void tdi_nlsolve_print_stats(NLSolveContext *ctx)
{
NLSolvePriv *s = ctx->priv;
@@ -497,6 +497,8 @@ int tdi_nlsolve_context_init(NLSolveContext *ctx)
return ret;
}
+ ctx->colloc_grid = s->ps_ctx->colloc_grid;
+
/* init the per-equation state */
for (int i = 0; i < s->nb_equations; i++) {
ret = eq_ctx_init(ctx, i);