<br><br><div class="gmail_quote">On Wed, May 4, 2011 at 2:18 PM, Matt Peddie <span dir="ltr"><<a href="mailto:mpeddie@gmail.com" target="_blank">mpeddie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Liam,<br>
<div><br>
On Wed, May 04, 2011 at 10:20:42AM -0400, Liam Healy wrote:<br>
> Unless I'm misunderstanding this request, this is already possible, in<br>
> fact I'd regard it as the basic usage. Perhaps you are thrown off by<br>
> the with-ode-integration macro and example.<br>
<br>
</div>Great! I followed the example to begin with, so that was my starting<br>
point.<br>
<div><br>
> I made up this macro in order to easily accommodate the case of<br>
> non-array usage in the ODE solvers, because I wanted to show a simple<br>
> example with scalars. However if you look at how that macro expands,<br>
> there is a symbol #:DEP that is bound to a foreign array with the<br>
> appropriate dimensions:<br>
><br>
</div>> [ macro definition ]<br>
<div>><br>
> So what you want to do is mimic this form, but instead define your<br>
> foreign array directly. Is this what you're asking about? If it's an<br>
> issue of CL array vs. foreign array, then you can use #'cl-array or<br>
> just copy it over at the beginning and end.<br>
<br>
</div>Thanks. I saw the way that DEP works within the macro, and I rewrote it<br>
a few times in an attempt to pass around the array directly and use<br>
grid:gref inside my dynamics function. I guess I just need to try a few<br>
more things (like I said, newbie here). I want to use the foreign array<br>
and avoid copying.<br>
<div><br>
> P.S. Please join the mailing list to post. Thank you.<br>
<br>
</div>I joined right after I got the `your message needs to be approved' mail;<br>
sorry.<br>
<font color="#888888"><br>
Matt<br></font></blockquote><div> </div></div>Good. Having said all that, I think there is definitely room for a more meaningful and more general macro than with-ode-integration. Though I'd like GSLL to be easier to use than GSL, at least calling make-ode-stepper, make-y-control, make-ode-evolution, apply-evolution, etc. on your own isn't any worse than GSL. And the macro expansion is what I would use as a "tutorial"; I understand for a CL newcomer it's still a tough task.<br>
<br>Liam<br>