diff options
author | Anton Khirnov <anton@khirnov.net> | 2018-04-22 12:58:22 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2018-04-22 13:08:24 +0200 |
commit | 3910a4ee954866524bab129dfa4a0403f2ebe164 (patch) | |
tree | e98f90b917d8a7a904bedaf0cf6824aaaec5ed59 /nlsolve.h | |
parent | 85ee8c05d6953bb361e678aae8fa965c27b8bd0f (diff) |
Rewrite constraint evaluation code.
Make it much more efficient and easier to add other seed functions.
Diffstat (limited to 'nlsolve.h')
-rw-r--r-- | nlsolve.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; |