From 3910a4ee954866524bab129dfa4a0403f2ebe164 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 22 Apr 2018 12:58:22 +0200 Subject: Rewrite constraint evaluation code. Make it much more efficient and easier to add other seed functions. --- nlsolve.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'nlsolve.h') diff --git a/nlsolve.h b/nlsolve.h index f9b69fe..426cb24 100644 --- a/nlsolve.h +++ b/nlsolve.h @@ -72,6 +72,17 @@ typedef struct NLSolveContext { */ unsigned int (*solve_order)[2]; + /** + * Locations of the collocation points. The equation coefficients in NLEqCallback and + * NLEqJacobianCallback should be evaluated at those grid positions. + * + * colloc_grid[i][j] is an array of length solve_order[i][j] and contains + * the collocation points for the i-th equation in the j-th direction. + * + * Set by the solver after tdi_nlsolve_context_init(). + */ + double *(*colloc_grid)[2]; + #if HAVE_OPENCL cl_context ocl_ctx; cl_command_queue ocl_queue; -- cgit v1.2.3