Skip to content

Commit c1bf87e

Browse files
committed
Change initial condition to always be periodic.
1 parent 3eb99cd commit c1bf87e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/+otp/+kuramotosivashinsky/+presets/Canonical.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
% right boundary point
3737
x = linspace(h, L, N).';
3838

39-
u0 = cos(x/16).*(1+sin(x/16));
39+
u0 = cospi(2*x/L).*(1+sinpi(2*x/L));
4040

4141
u0hat = fft(u0);
4242

0 commit comments

Comments
 (0)