Changeset 19233


Ignore:
Timestamp:
04/01/15 08:37:51 (10 years ago)
Author:
Mathieu Morlighem
Message:

NEW: added weertman like friction law for SIA (Kevin)

File:
1 edited

Legend:

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

    r19232 r19233  
    109109        bool   isSIA;
    110110        bool   islevelset;
     111        int    frictionlaw;
    111112        iomodel->Constant(&isSIA,FlowequationIsSIAEnum);
    112113        iomodel->Constant(&islevelset,TransientIslevelsetEnum);
     114        iomodel->Constant(&frictionlaw,FrictionLawEnum);
    113115
    114116        /*Now, is the flag SIA on? otherwise, do nothing: */
     
    125127                        counter++;
    126128                }
     129        }
     130
     131        /*Friction law variables*/
     132        switch(frictionlaw){
     133                case 1:
     134                        iomodel->FetchDataToInput(elements,FrictionCoefficientEnum);
     135                        iomodel->FetchDataToInput(elements,FrictionPEnum);
     136                        iomodel->FetchDataToInput(elements,FrictionQEnum);
     137                        break;
     138                case 2:
     139                        iomodel->FetchDataToInput(elements,FrictionCEnum);
     140                        iomodel->FetchDataToInput(elements,FrictionMEnum);
     141                        break;
     142                case 6:
     143                        iomodel->FetchDataToInput(elements,FrictionCEnum);
     144                        iomodel->FetchDataToInput(elements,FrictionMEnum);
     145                        iomodel->FetchDataToInput(elements,PressureEnum);
     146                        iomodel->FetchDataToInput(elements,TemperatureEnum);
     147                        break;
     148                default:
     149                        _error_("not supported");
    127150        }
    128151
Note: See TracChangeset for help on using the changeset viewer.