Skip to content

Commit 9a8a63c

Browse files
committed
more of steven's fixes
1 parent 91d439c commit 9a8a63c

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/+otp/+kuramotosivashinsky/KuramotoSivashinskyProblem.m

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@
77
end
88

99
methods
10-
function soly = convert2grid(soly)
10+
function soly = convert2grid(~, soly)
1111

12-
if isstruct(soly)
13-
soly.y = real(ifft(soly.y));
14-
else
15-
soly = real(ifft(soly.')).';
16-
end
12+
soly = real(ifft(soly));
1713

1814
end
1915

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function j = jac(~, u, k, k24)
22

3-
j = -diag(k24) - k.*ifft(fft(diag(ifft(u))).').';
3+
j = -diag(k24) - k.*ifft(fft(diag(real(ifft(u)))).').';
44

55
end

0 commit comments

Comments
 (0)