Changeset 15978


Ignore:
Timestamp:
08/27/13 14:40:37 (12 years ago)
Author:
seroussi
Message:

CHG: IsFloating now based on groundedice_levelset

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

Legend:

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

    r15976 r15978  
    27442744bool   Penta::IsFloating(){
    27452745
    2746         bool onshelf;
    2747         inputs->GetInputValue(&onshelf,MaskElementonfloatingiceEnum);
    2748         return onshelf;
     2746        bool shelf;
     2747        int  migration_style;
     2748        parameters->FindParam(&migration_style,GroundinglineMigrationEnum);
     2749
     2750        if(migration_style==SubelementMigrationEnum || migration_style==SubelementMigration2Enum){ //Floating if all nodes are floating
     2751                if(this->inputs->Max(MaskGroundediceLevelsetEnum) <= 0.) shelf=true;
     2752                else shelf=false;
     2753        }
     2754        else if(migration_style==NoneEnum || migration_style==AgressiveMigrationEnum || migration_style==SoftMigrationEnum){ //Floating if all nodes are floating
     2755                if(this->inputs->Min(MaskGroundediceLevelsetEnum) > 0.) shelf=false;
     2756                else shelf=true;
     2757        }
     2758        else _error_("migration_style not implemented yet");
     2759
     2760        return shelf;
    27492761}
    27502762/*}}}*/
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r15973 r15978  
    19581958
    19591959        bool shelf;
    1960         inputs->GetInputValue(&shelf,MaskElementonfloatingiceEnum);
     1960        int  migration_style;
     1961        parameters->FindParam(&migration_style,GroundinglineMigrationEnum);
     1962
     1963        if(migration_style==SubelementMigrationEnum || migration_style==SubelementMigration2Enum){ //Floating if all nodes are floating
     1964                if(this->inputs->Max(MaskGroundediceLevelsetEnum) <= 0.) shelf=true;
     1965                else shelf=false;
     1966        }
     1967        else if(migration_style==NoneEnum || migration_style==AgressiveMigrationEnum || migration_style==SoftMigrationEnum){ //Floating if all nodes are floating
     1968                if(this->inputs->Min(MaskGroundediceLevelsetEnum) > 0.) shelf=false;
     1969                else shelf=true;
     1970        }
     1971        else _error_("migration_style not implemented yet");
     1972
    19611973        return shelf;
    19621974}
Note: See TracChangeset for help on using the changeset viewer.