Skip to content

Commit 5f5a014

Browse files
committed
Fixes to L96 preset PS
1 parent 04a84ee commit 5f5a014

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/+otp/+lorenz96/+presets/PopovSandu.m

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,20 @@
3535

3636
q = s.Partitions;
3737

38-
sixHours = 0.05;
39-
day = sixHours * 4;
40-
numDays = 5;
41-
omega = 2 * pi/(day * numDays);
38+
fiveDays = 1;
39+
omega = 2 * pi/(fiveDays);
4240

43-
F = @(t) 8 + 4*cos(omega*(t + mod((1:40) - 1, q)/q)).';
41+
F = @(t) 8 + 4*cos(omega*(t + mod((1:N) - 1, q)/q)).';
4442

4543
params.forcingFunction = F;
4644

4745
% We initialise the Lorenz96 model as in (Lorenz & Emanuel 1998)
4846

4947
y0 = 8*ones(N, 1);
5048

51-
y0(20) = 8.008;
49+
y0(floor(N/2)) = 8.008;
5250

53-
tspan = [0, sixHours]; % 6 hours
51+
tspan = [0, 720]; % 3600 days
5452

5553
obj = obj@otp.lorenz96.Lorenz96Problem(tspan, y0, params);
5654

0 commit comments

Comments
 (0)