|
From: | Francesco Faccio |
Subject: | Avoid global pointers in dae |
Date: | Sat, 13 Aug 2016 05:30:55 +0000 |
Hi! ColumnVector
ida_user_function (const ColumnVector& x, const ColumnVector& xdot,
double t, octave_idx_type& ires)
and it uses a global pointer to the octave_function supplied by the user to compute residuals. I would like to overload the constructor of DAEfunc in order to pass the pointer when I construct my object (and avoid declaring it as global): typedef ColumnVector (*DAERHSFuncIDA) (const ColumnVector& x,
const ColumnVector& xdot,
double t, octave_idx_type& ires,
octave_function *& ida_fcn);
and same for the Jacobian.DAEFunc (DAERHSFuncIDA f)
: fun_ida (f), jac (0), reset (true) { }
Since I don't own copiright, I would like to know if it's ok to change the interface of that base class. Thank you, Francesco |
[Prev in Thread] | Current Thread | [Next in Thread] |