Changeset 17636


Ignore:
Timestamp:
04/03/14 16:00:44 (11 years ago)
Author:
hongjuy
Message:

CHG: (1) add constraint on vy if levelset == 0 (2) GL migration only allowed for the first grounded element that touches the GL

Location:
issm/trunk-jpl/src/c/classes/Elements
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Element.cpp

    r17633 r17636  
    666666        parameters->FindParam(&migration_style,GroundinglineMigrationEnum);
    667667
    668         if(migration_style==SubelementMigrationEnum || migration_style==SubelementMigration2Enum){ //Floating if all nodes are floating
     668        if(migration_style==SubelementMigrationEnum || migration_style==SubelementMigration2Enum || migration_style==ContactEnum){ //Floating if all nodes are floating
    669669                if(this->inputs->Max(MaskGroundediceLevelsetEnum) <= 0.) shelf=true;
    670670                else shelf=false;
    671671        }
    672         else if(migration_style==NoneEnum || migration_style==AgressiveMigrationEnum || migration_style==SoftMigrationEnum || migration_style==ContactEnum){ //Floating if all nodes are floating
     672        else if(migration_style==NoneEnum || migration_style==AgressiveMigrationEnum || migration_style==SoftMigrationEnum){ //Floating if all nodes are floating
    673673                if(this->inputs->Min(MaskGroundediceLevelsetEnum) > 0.) shelf=false;
    674674                else shelf=true;
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r17634 r17636  
    13451345        if(!IsFloating()){
    13461346
     1347                if(this->inputs->Max(MaskGroundediceLevelsetEnum)==0.){
     1348
    13471349                this->StrainRateSSA(&epsilon[0],xyz_list,gauss,vx_input,vy_input);
    13481350                this->ViscosityFS(&viscosity,2,xyz_list,gauss,vx_input,vy_input,NULL);
     
    13701372                if (sigma_nn<water_pressure) grounded=true;
    13711373                else                         grounded=false;
     1374                }
     1375                else{
     1376                        grounded=true;
     1377                }
    13721378        }
    13731379        else{
     
    17071713                        xz_plane[1]=sin(theta);       xz_plane[4]=0.; 
    17081714                        xz_plane[2]=0.;               xz_plane[5]=1.;         
    1709                         if(groundedice>0){
     1715                        if(groundedice>=0){
    17101716                                this->nodes[i]->DofInSSet(1); //vy
    17111717                        }
Note: See TracChangeset for help on using the changeset viewer.