aboutsummaryrefslogtreecommitdiff
path: root/nlsolve.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-01-11 16:36:29 +0100
committerAnton Khirnov <anton@khirnov.net>2023-01-11 16:38:57 +0100
commitda6889fcec7cc0772f351752f37eb42380da6630 (patch)
tree246cd7bc9d911e5f132907de53f73d5b1d2dc42a /nlsolve.h
parent66eb0f74a2811b53eac353b07873718798985e98 (diff)
{ps,nl}solve: constify exported colloc grid
Reduces compiler warnings.
Diffstat (limited to 'nlsolve.h')
-rw-r--r--nlsolve.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nlsolve.h b/nlsolve.h
index d0e3c38..3f3987c 100644
--- a/nlsolve.h
+++ b/nlsolve.h
@@ -82,7 +82,7 @@ typedef struct NLSolveContext {
*
* Set by the solver after tdi_nlsolve_context_init().
*/
- double *(*colloc_grid)[2];
+ const double * const (*colloc_grid)[2];
// solver parameters
unsigned int maxiter;