Changeset 4197 for issm/trunk/src/m/solutions/SetCurrentAnalysis.m
- Timestamp:
- 06/24/10 14:50:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/solutions/SetCurrentAnalysis.m
r4188 r4197 11 11 12 12 %first, look for analysis: 13 found= 0;13 found=-1; 14 14 for i=1:length(femmodel.analysis_type_list), 15 femmodel.analysis_type_list(i) 16 analysis_enum 15 17 if femmodel.analysis_type_list(i)==analysis_enum, 16 18 found=i; … … 19 21 end 20 22 21 if ~found==1,23 if found==-1, 22 24 error('SetCurrentAnalysis error message: could not find analysis_type in list of FemModel analyses'); 23 25 end 24 25 26 26 27 %activate matrices and vectors: … … 34 35 %Now, plug analysis_counter and analysis_type inside the parameters: 35 36 %set counter and analyse_type 36 femmodel.parameters.AnalysisCounter=found ;37 femmodel.parameters.AnalysisCounter=found-1; %for c indices 37 38 femmodel.parameters.AnalysisType=analysis_enum;
Note:
See TracChangeset
for help on using the changeset viewer.