Changeset 2104


Ignore:
Timestamp:
09/03/09 12:09:31 (15 years ago)
Author:
Mathieu Morlighem
Message:

minor indentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/process_solve_options.m

    r2102 r2104  
    11function outoptions=process_solve_options(options)
    2                 %DEFAULT_SOLVE_OPTIONS - set up default options for solve phase
    3                 %
    4                 %   Usage:
     2%DEFAULT_SOLVE_OPTIONS - set up default options for solve phase
     3%
     4%   Usage:
    55%      options=process_solve_options(options)
    6                 %
    7                 %   See also: SOLVE,RECOVER_SOLVE_OPTIONS
     6%
     7%   See also: SOLVE,RECOVER_SOLVE_OPTIONS
    88
    9                 %package: is there one? check to ''cielo''
    10                 found=0;
    11                 for i=1:size(options,1),
    12                 if strcmpi(options{i,1},'package'),
     9%package: is there one? check to ''cielo''
     10found=0;
     11for i=1:size(options,1),
     12        if strcmpi(options{i,1},'package'),
    1313                package=options{i,2};
    14 found=1;
    15 break
    16 end
     14                found=1;
     15                break
     16        end
    1717end
    1818if ~found,
    1919        disp('recover_solve_options info message: no ''package'' was provided, defaulting to ''cielo''');
    20 options(end+1,:)={'package' 'cielo'};
    21 package='cielo';
     20        options(end+1,:)={'package' 'cielo'};
     21        package='cielo';
    2222end
    2323if ~ismemberi(package,{'cielo','ice','macayeal'}),
     
    2828found=0;
    2929for i=1:size(options,1),
    30          if strcmpi(options{i,1},'analysis_type'),
    31          analysis_type=options{i,2};
    32 found=1;
    33 break
    34 end
     30        if strcmpi(options{i,1},'analysis_type'),
     31                analysis_type=options{i,2};
     32                found=1;
     33                break
     34        end
    3535end
    3636if ~found,
     
    4141found=0;
    4242for i=1:size(options,1),
    43          if strcmpi(options{i,1},'sub_analysis_type'),
    44          sub_analysis_type=options{i,2};
    45 found=1;
    46 break
    47 end
     43        if strcmpi(options{i,1},'sub_analysis_type'),
     44                sub_analysis_type=options{i,2};
     45                found=1;
     46                break
     47        end
    4848end
    4949if ~found
     
    5454found=0;
    5555for i=1:size(options,1),
    56          if strcmpi(options{i,1},'batch'),
    57          batch=options{i,2};
    58 found=1;
    59 break
    60 end
     56        if strcmpi(options{i,1},'batch'),
     57                batch=options{i,2};
     58                found=1;
     59                break
     60        end
    6161end
    6262if ~found
Note: See TracChangeset for help on using the changeset viewer.