Changeset 2104
- Timestamp:
- 09/03/09 12:09:31 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/process_solve_options.m
r2102 r2104 1 1 function outoptions=process_solve_options(options) 2 3 4 2 %DEFAULT_SOLVE_OPTIONS - set up default options for solve phase 3 % 4 % Usage: 5 5 % options=process_solve_options(options) 6 7 6 % 7 % See also: SOLVE,RECOVER_SOLVE_OPTIONS 8 8 9 10 11 12 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'), 13 13 package=options{i,2}; 14 found=1;15 break16 end14 found=1; 15 break 16 end 17 17 end 18 18 if ~found, 19 19 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'; 22 22 end 23 23 if ~ismemberi(package,{'cielo','ice','macayeal'}), … … 28 28 found=0; 29 29 for i=1:size(options,1), 30 31 32 found=1;33 break34 end30 if strcmpi(options{i,1},'analysis_type'), 31 analysis_type=options{i,2}; 32 found=1; 33 break 34 end 35 35 end 36 36 if ~found, … … 41 41 found=0; 42 42 for i=1:size(options,1), 43 44 45 found=1;46 break47 end43 if strcmpi(options{i,1},'sub_analysis_type'), 44 sub_analysis_type=options{i,2}; 45 found=1; 46 break 47 end 48 48 end 49 49 if ~found … … 54 54 found=0; 55 55 for i=1:size(options,1), 56 57 58 found=1;59 break60 end56 if strcmpi(options{i,1},'batch'), 57 batch=options{i,2}; 58 found=1; 59 break 60 end 61 61 end 62 62 if ~found
Note:
See TracChangeset
for help on using the changeset viewer.