Skip to content

Commit

Permalink
Prepare to fix #824 deprecate options shift and radius
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlofberg committed May 21, 2024
1 parent b3cda04 commit 3be090b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions extras/sdpsettings.m
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,16 @@

lowArg = strtrim(lower(arg));

if strcmp(lowArg,'usex0')
usex0wasused = 1;
warmstartwasused = 0;
elseif strcmp(lowArg,'warmstart')
usex0wasused = 0;
warmstartwasused = 1;
switch lowArg
case 'usex0'
usex0wasused = 1;
warmstartwasused = 0;
case 'warmstart'
usex0wasused = 0;
warmstartwasused = 1;
case {'shift','radius'}
warning(['Option ''' lowArg ''' will be removed in a future version and is no longer effective']);
otherwise
end

j = strmatch_octavesafe(lowArg,names);
Expand Down

0 comments on commit 3be090b

Please sign in to comment.