Ignore:
Timestamp:
06/22/10 15:07:16 (15 years ago)
Author:
Mathieu Morlighem
Message:

Fixed counter problem in diagnostic horiz and updated elements/loads as sub_analysis is not used anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Beam.cpp

    r4091 r4122  
    222222void  Beam::CreateKMatrix(Mat Kgg){
    223223
    224         int analysis_type,sub_analysis_type;
     224        int analysis_type;
    225225
    226226        /*retrive parameters: */
    227227        parameters->FindParam(&analysis_type,AnalysisTypeEnum);
    228         parameters->FindParam(&sub_analysis_type,AnalysisTypeEnum);
    229228
    230229        /*Just branch to the correct element stiffness matrix generator, according to the type of analysis we are carrying out: */
    231         if (analysis_type==DiagnosticAnalysisEnum) {
    232        
    233                 if (sub_analysis_type==HutterAnalysisEnum) {
    234 
    235                         CreateKMatrixDiagnosticHutter( Kgg);
    236                 }
    237                 else
    238                         ISSMERROR("%s%i%s\n","sub_analysis_type: ",sub_analysis_type," not supported yet");
     230        if (analysis_type==DiagnosticHutterAnalysisEnum) {
     231                CreateKMatrixDiagnosticHutter( Kgg);
    239232        }
    240233        else{
    241                 ISSMERROR("%s%i%s\n","analysis: ",analysis_type," not supported yet");
     234                ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
    242235        }
    243236
     
    306299       
    307300        /*Just branch to the correct load generator, according to the type of analysis we are carrying out: */
    308         if (analysis_type==DiagnosticAnalysisEnum) {
    309                 if (sub_analysis_type==HutterAnalysisEnum) {
    310                         CreatePVectorDiagnosticHutter( pg);
    311                 }
    312                 else
    313                         ISSMERROR("%s%i%s"," analysis ",analysis_type," not supported yet");
     301        if (analysis_type==DiagnosticHutterAnalysisEnum) {
     302                CreatePVectorDiagnosticHutter( pg);
    314303        }
    315304        else{
    316                 ISSMERROR("%s%i%s"," analysis ",analysis_type," not supported yet");
     305                ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
    317306        }
    318307
Note: See TracChangeset for help on using the changeset viewer.