octave-maintainers
[Top][All Lists]
Advanced

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

Re: Avoid global pointers in dae


From: Carlo De Falco
Subject: Re: Avoid global pointers in dae
Date: Mon, 15 Aug 2016 17:55:57 +0000

On 15 Aug 2016, at 12:42, Francesco Faccio <address@hidden> wrote:

> Since a dae solved by ode15i "is a" DAE and the design is pretty similar to 
> daspk.cc, I think that it's the right place to be inside Octave. In IDA I 
> call the constructor of the base class DAEFunc passing as argument a pointer 
> to the DAERHSFunc and the constructors of base class base_diff_alg_eqn and 
> base_diff_eqn. I call methodsbase_diff_eqn::time(), base_diff_eqn::state(), 
> base_diff_alg_eqn::state_derivative() inside another method to initialize Ida 
> solver and I dereference the function of the base class DAEFunc in order to 
> compute residual ([3] line 70). 

None of these seems like indispensible to me ...

If you write your class as more independent 
then your changesets will be less invasive 
and more easily accepted, do you think that 
would be possible?

c.





reply via email to

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