The following is using a a few months old GSLL and SBCL -- I do not want to upgrade unless absolutely necessary at this moment, because I need to finish a project first.<br><br>Consider the following function:<br><br>(defun foo (x y)<br>
(let ((z (grid:map-n-grids :combination-function (lambda (y)<br> y)<br> :sources `((,y nil)))))<br> (gsll:make-interpolation gsll:+linear-interpolation+<br> x z)))<br>
<br>If I call it twice with vectors of different size on the second call<br><br>(let ((x #m(1d0 2d0 3d0))<br> (y #m(1d0 1d0 1d0))<br> (u #m(1d0 2d0 3d0 4d0))<br> (v #m(1d0 1d0 1d0 1d0)))<br> (foo x y)<br> (foo u v))<br>
<br>I get an error on the second call<br><br>Invalid argument; data must match size of interpolation object in interp.c at line 76<br> [Condition of type GSLL:INVALID-ARGUMENT]<br><br>It seems that `z' still somehow lives with incorrect dimensions between the calls.<br>
<br>In actual use, I call foo from repl. So, before calling it, I force a recompile, so that it works for a new vector.<br><br>Is there a more elegant workaround for this problem?<br><br>Thanks,<br><br>Mirko<br>