Changeset 18729


Ignore:
Timestamp:
11/04/14 09:36:59 (10 years ago)
Author:
Mathieu Morlighem
Message:

CHG: simplifying what Melting Analysis needs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/MeltingAnalysis.cpp

    r18311 r18729  
    1010}/*}}}*/
    1111void MeltingAnalysis::UpdateParameters(Parameters* parameters,IoModel* iomodel,int solution_enum,int analysis_enum){/*{{{*/
    12         parameters->AddObject(iomodel->CopyConstantObject(FrictionLawEnum));
    1312}/*}}}*/
    1413void MeltingAnalysis::UpdateElements(Elements* elements,IoModel* iomodel,int analysis_counter,int analysis_type){/*{{{*/
     
    2928        }
    3029
    31         iomodel->Constant(&frictionlaw,FrictionLawEnum);
    32 
    3330        /*Create inputs: */
    3431        iomodel->FetchDataToInput(elements,ThicknessEnum);
     
    4037                iomodel->FetchDataToInput(elements,MeshVertexonsurfaceEnum);
    4138        }
    42         iomodel->FetchDataToInput(elements,MaterialsRheologyBEnum);
    43         iomodel->FetchDataToInput(elements,MaterialsRheologyNEnum);
    44         iomodel->FetchDataToInput(elements,BasalforcingsGroundediceMeltingRateEnum);
    4539        iomodel->FetchDataToInput(elements,PressureEnum);
    46        
    47         /*Friction law variables*/
    48         switch(frictionlaw){
    49                 case 1:
    50                         iomodel->FetchDataToInput(elements,FrictionCoefficientEnum);
    51                         iomodel->FetchDataToInput(elements,FrictionPEnum);
    52                         iomodel->FetchDataToInput(elements,FrictionQEnum);
    53                         break;
    54                 case 2:
    55                         iomodel->FetchDataToInput(elements,FrictionCEnum);
    56                         iomodel->FetchDataToInput(elements,FrictionMEnum);
    57                         break;
    58                 default:
    59                         _error_("not supported");
    60         }
    6140}/*}}}*/
    6241void MeltingAnalysis::CreateNodes(Nodes* nodes,IoModel* iomodel){/*{{{*/
Note: See TracChangeset for help on using the changeset viewer.