Skip to content

Commit 627d5cc

Browse files
committed
simplified the partitions
1 parent 5f5a014 commit 627d5cc

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

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

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,16 @@
1515
function obj = PopovSandu(varargin)
1616

1717
p = inputParser;
18-
p.KeepUnmatched = true;
1918
addParameter(p, 'Size', 40, @isscalar);
19+
addParameter(p, 'Partitions', 4, @isscalar);
2020

2121
parse(p, varargin{:});
2222

2323
s = p.Results;
2424

2525
N = s.Size;
26-
27-
pu = p.Unmatched;
28-
29-
p = inputParser;
30-
p.KeepUnmatched = true;
31-
p.addParameter('Partitions', (mod(N, 4) == 0)*4 + (mod(N, 4) ~= 0)*1, @(x) mod(N, x) == 0);
32-
p.parse(pu);
33-
34-
s = p.Results;
35-
3626
q = s.Partitions;
37-
27+
3828
fiveDays = 1;
3929
omega = 2 * pi/(fiveDays);
4030

0 commit comments

Comments
 (0)