octave-maintainers
[Top][All Lists]
Advanced

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

Re: 1D PDE solver for Octave


From: Bill Greene
Subject: Re: 1D PDE solver for Octave
Date: Tue, 5 Jul 2016 12:31:29 -0400

Glad to hear you were able to build on OSX. I don't currently have access to that platform.

Regarding the demo, it looks to me like the first "demo" line is
%!demo
I don't see an extra space. I haven't yet tried on linux but when I do
demo pde1d
on windows, I get this error:
error: element number 1 undefined in return list
error: called from
    demo at line 111 column 13

>Even if I fix this the demo does nothing useful, it defines a
>bunch of functions but doesn't run anything.

OK, I just took the contents of one of my test m-files and put
a %! in front of every line. So maybe there should be
%!heatCond
as the last line in the demo section to call the "main" function?


On Tue, Jul 5, 2016 at 11:42 AM, Carlo De Falco <address@hidden> wrote:

On 4 Jul 2016, at 14:57, Bill Greene <address@hidden> wrote:

> I just checked in a Makefile that works for me on linux.

I rearranged your code and fixed your makefile so that it works
for me on OSX too.

This should work with minimal editing on any other platform with
Eigen, Octave and Sundials installed too.

Your demo does not work because its syntax is wrong.

Only in the first line you should have "%!demo" without
a space after "%!".

Even if I fix this the demo does nothing useful, it defines a
bunch of functions but doesn't run anything.

c.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]