Re: [Vala] GSL binding problem: OdeivEvolve::apply



On Mon, 2009-03-09 at 20:52 -0200, Matías De la Puente wrote:
Hi Yu,

You are right they should be ref doubles not arrays.
Here's the patch

diff --git a/vapi/gsl.vapi b/vapi/gsl.vapi
index 3ad9979..883c861 100644
--- a/vapi/gsl.vapi
+++ b/vapi/gsl.vapi
@@ -3514,7 +3514,7 @@ namespace Gsl
         
         [CCode (cname="gsl_odeiv_evolve_alloc")]
         public OdeivEvolve (size_t dim);
-        public int apply (OdeivControl con, OdeivStep step,
OdeivSystem* dydt, [CCode (array_length = false)] double[] t, double
t1, [CCode (array_length = false)] double[] h, [CCode (array_length =
false)] double[] y);
+        public int apply (OdeivControl con, OdeivStep step,
OdeivSystem* dydt, ref double t, double t1, ref double h, [CCode
(array_length = false)] double[] y);
         public int reset ();
     }

Thank you!

Yu
Matias




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]