Changeset 7629 for issm/trunk/src/m/qmu/process_qmu_options.m
- Timestamp:
- 03/04/11 14:54:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/qmu/process_qmu_options.m
r6568 r7629 37 37 end 38 38 39 %sub_analysis_type: check on it, not mandatory40 found=0;41 for i=1:size(options,1),42 if strcmpi(options{i,1},'sub_analysis_type'),43 sub_analysis_type=options{i,2};44 found=1;45 end46 end47 if ~found48 if ~strcmpi(analysis_type,'thermal'),49 sub_analysis_type='none';50 else51 disp('recover_qmu_options info message: no ''sub_analysis_type'' was provided, defaulting to ''steady''');52 sub_analysis_type='steady';53 end54 end55 56 39 %check solution type is supported 57 40 if ~(strcmpi(analysis_type,'control') | ... … … 65 48 error(['process_qmu_options error message: analysis_type ' analysis_type ' not supported yet!']); 66 49 end 67 if ~(strcmpi(sub_analysis_type,'none') | ...68 strcmpi(sub_analysis_type,'steady') | ...69 strcmpi(sub_analysis_type,'horiz') | ...70 strcmpi(sub_analysis_type,'vert') | ...71 strcmpi(sub_analysis_type,'') | ...72 strcmpi(sub_analysis_type,'transient') ),73 error(['process_qmu_options error message: sub_analysis_type ' sub_analysis_type ' not supported yet!']);74 end75 76 77 50 78 51 % process qmu arguments … … 121 94 outoptions.analysis_type=analysis_type; 122 95 outoptions.package=package; 123 outoptions.sub_analysis_type=sub_analysis_type;124 96 outoptions.qmudir=qmudir; 125 97 outoptions.qmufile=qmufile;
Note:
See TracChangeset
for help on using the changeset viewer.