Skip to content

Commit c1938e5

Browse files
committed
250908.094307.CST [skip ci] revise norma/uobyqb.f90 and isequiv.m
1 parent 820a79e commit c1938e5

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.development

matlab/tests/private/isequiv.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ function isequiv(solvers, options)
597597
prob1.Aeq
598598
prob1.beq
599599
test_options
600+
options
600601
fprintf('\nThe seed is\t\t%d\n\n', yw);
601602
if single_test && options.sequential
602603
cd(options.olddir);

matlab/tests/verify.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ function verify(varargin)
7373
yw = year_week('Asia/Shanghai');
7474
end
7575
options.yw = yw; % options.yw is needed in `isequiv`.
76-
if mod(yw, 4) == 0
77-
options.integer_kind = 0;
78-
else
79-
options.integer_kind = 2^(mod(yw, 4) + 3);
80-
end
76+
options.integer_kind = mod(yw, 4) * 2^(mod(yw, 4) + 3); % 0, 16, 32, or 64
8177

8278
% Make the solvers available. Note that the solvers are under `test_dir`.
8379
get_solvers(solvers, test_dir, options);

0 commit comments

Comments
 (0)