Changeset 5455


Ignore:
Timestamp:
08/20/10 14:50:08 (15 years ago)
Author:
Mathieu Morlighem
Message:

minor fixing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Loads/Numericalflux.cpp

    r5454 r5455  
    312312
    313313        int type;
    314 
    315         /*recover type: */
     314        int analysis_type;
     315
     316        /*recover some parameters*/
    316317        inputs->GetParameterValue(&type,TypeEnum);
    317 
    318         if (type==InternalEnum){
    319                 CreateKMatrixInternal(Kgg);
    320         }
    321         else if (type==BoundaryEnum){
    322                 CreateKMatrixBoundary(Kgg);
    323         }
    324         else ISSMERROR("type not supported yet");
     318        this->parameters->FindParam(&analysis_type,AnalysisTypeEnum);
     319
     320        if (analysis_type==PrognosticAnalysisEnum || analysis_type==BalancedthicknessAnalysisEnum || analysis_type==AdjointBalancedthicknessAnalysisEnum){
     321                if      (type==InternalEnum) CreateKMatrixInternal(Kgg);
     322                else if (type==BoundaryEnum) CreateKMatrixBoundary(Kgg);
     323                else ISSMERROR("type not supported yet");
     324        }
     325        else{
     326                ISSMERROR("analysis_type %s not supported yet",EnumToString(analysis_type));
     327        }
    325328
    326329}
     
    330333
    331334        int type;
    332 
    333         /*recover type: */
     335        int analysis_type;
     336
     337        /*recover some parameters*/
    334338        inputs->GetParameterValue(&type,TypeEnum);
    335 
    336         if (type==InternalEnum){
    337                 CreatePVectorInternal(pg);
    338         }
    339         else if (type==BoundaryEnum){
    340                 CreatePVectorBoundary(pg);
    341         }
    342         else ISSMERROR("type not supported yet");
     339        this->parameters->FindParam(&analysis_type,AnalysisTypeEnum);
     340
     341        if (analysis_type==PrognosticAnalysisEnum || analysis_type==BalancedthicknessAnalysisEnum){
     342                if      (type==InternalEnum) CreatePVectorInternal(pg);
     343                else if (type==BoundaryEnum) CreatePVectorBoundary(pg);
     344                else ISSMERROR("type not supported yet");
     345        }
     346        else if (analysis_type==AdjointBalancedthicknessAnalysisEnum){
     347                return;
     348        }
     349        else{
     350                ISSMERROR("analysis_type %s not supported yet",EnumToString(analysis_type));
     351        }
     352
    343353
    344354}
Note: See TracChangeset for help on using the changeset viewer.