/usr/share/octave/site/m/sundialsTB/idas/idm/idm_monitor.m is in octave-sundials 2.5.0-3+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | function new_mondata = idm_monitor(call, t, yy, yQ, Ns, yyS, fct, mondata)
%
% Wrapper around the actual user-provided Matlab function
%
N = length(yy);
yyS = reshape(yyS, N, Ns);
if isempty(mondata)
feval(fct, call, t, yy, yQ, yyS);
new_mondata = [];
else
new_mondata = feval(fct, call, t, yy, yQ, yyS, mondata);
end
|