Changeset 14373


Ignore:
Timestamp:
02/22/13 18:25:06 (12 years ago)
Author:
seroussi
Message:

BUG: fixed subelement grounding line

File:
1 edited

Legend:

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

    r14372 r14373  
    21762176                        if (bed_hydro>ba[i]){
    21772177                                /*Unground only if the element is connected to the ice shelf*/
    2178                                 if(migration_style==AgressiveMigrationEnum){
     2178                                if(migration_style==AgressiveMigrationEnum || migration_style==SubelementMigrationEnum){
    21792179                                        s[i]=(1-density)*h[i];
    21802180                                        b[i]=-density*h[i];
     
    21872187                                        nodes[i]->inputs->AddInput(new BoolInput(MaskVertexonfloatingiceEnum,true));
    21882188                                        nodes[i]->inputs->AddInput(new BoolInput(MaskVertexongroundediceEnum,false));
     2189                                }
     2190                                else{
     2191                                        if(migration_style!=SoftMigrationEnum) _error_("Error: migration should be Aggressive, Soft or Subelement");
    21892192                                }
    21902193                        }
Note: See TracChangeset for help on using the changeset viewer.