Redefine defmcallback to provide and accept scalars from CL functions
New definition for defmcallback will now convert C array pointers passed to the function by GSL into individual scalar arguments of the CL function, and will take multiple value returns and assign as elements of the return C arrays. Applied to def-ode-functions and the van der Pol oscillator example. Redefined #'maref-function-picker as a macro from a function, eliminating the need for an eval-when form.
Showing
- data/maref.lisp 16 additions, 16 deletionsdata/maref.lisp
- gsll-tests.asd 2 additions, 1 deletiongsll-tests.asd
- init/callback.lisp 92 additions, 30 deletionsinit/callback.lisp
- ordinary-differential-equations/ode-example.lisp 25 additions, 22 deletionsordinary-differential-equations/ode-example.lisp
- ordinary-differential-equations/ode-system.lisp 22 additions, 12 deletionsordinary-differential-equations/ode-system.lisp
- tests/ode.lisp 11 additions, 0 deletionstests/ode.lisp
tests/ode.lisp
0 → 100644
Please register or sign in to comment