Skip to content

Commit 47f4202

Browse files
committed
Quick hack to get chebops a little further
1 parent 967b63a commit 47f4202

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

@chebop/solvebvp.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@
197197
% Solve:
198198
if ( all(isLinear) )
199199
% This step also ensures that RHS is a CHEBMATRIX:
200+
if is_octave()
201+
% TODO: probably hitting Octave COW issues, why else would this fix
202+
% anything? But it fixes "L \ 1" for CBM... see also uminus hacks
203+
_tmp = (-1)*residual;
204+
end
200205
rhs = rhs - residual;
201206

202207
% Ensure that rhs-residual is of correct discretization:

0 commit comments

Comments
 (0)