Ignore:
Timestamp:
06/24/10 14:50:20 (15 years ago)
Author:
seroussi
Message:

serial SetCurrentAnalysis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/SetCurrentAnalysis.m

    r4188 r4197  
    1111
    1212        %first, look for analysis:
    13         found=0;
     13        found=-1;
    1414        for i=1:length(femmodel.analysis_type_list),
     15                femmodel.analysis_type_list(i)
     16                analysis_enum
    1517                if femmodel.analysis_type_list(i)==analysis_enum,
    1618                        found=i;
     
    1921        end
    2022
    21         if ~found==1,
     23        if found==-1,
    2224                error('SetCurrentAnalysis error message: could not find analysis_type in list of FemModel analyses');
    2325        end
    24 
    2526       
    2627        %activate matrices and vectors:
     
    3435        %Now, plug analysis_counter and analysis_type inside the parameters:
    3536        %set counter and analyse_type
    36         femmodel.parameters.AnalysisCounter=found;
     37        femmodel.parameters.AnalysisCounter=found-1; %for c indices
    3738        femmodel.parameters.AnalysisType=analysis_enum;
Note: See TracChangeset for help on using the changeset viewer.