Changeset 14368


Ignore:
Timestamp:
02/22/13 15:03:48 (12 years ago)
Author:
seroussi
Message:

CHG: improved grounded portion computation

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

Legend:

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

    r14365 r14368  
    11191119        /*Computeportion of the element that is grounded*/
    11201120
    1121         bool mainlyfloating=true;
    1122         IssmDouble phi,s1,s2,area_init,area_grounded;
    1123         IssmDouble gl[3];
    1124         IssmDouble xyz_bis[3][3];
    1125         GaussTria *gauss    = NULL;
     1121        bool               mainlyfloating = true;
     1122        const IssmPDouble  epsilon= 1.e-15;
     1123        IssmDouble         phi,s1,s2,area_init,area_grounded;
     1124        IssmDouble         gl[3];
     1125        IssmDouble         xyz_bis[3][3];
     1126        GaussTria         *gauss = NULL;
    11261127
    11271128        /*Recover parameters and values*/
    11281129        GetInputListOnVertices(&gl[0],GLlevelsetEnum);
    11291130       
     1131        /*Be sure that values are not zero*/
     1132        if(gl[0]==0) gl[0]=gl[0]+epsilon;
     1133        if(gl[1]==0) gl[1]=gl[1]+epsilon;
     1134        if(gl[2]==0) gl[2]=gl[2]+epsilon;
     1135
    11301136        /*Check that not all nodes are grounded or floating*/
    11311137        if(gl[0]>0 && gl[1]>0 && gl[2]>0){ // All grounded
     
    11361142        }
    11371143        else{
    1138 
    11391144                /*Figure out if two nodes are floating or grounded*/
    11401145                if(gl[0]*gl[1]*gl[2]>0) mainlyfloating=false;
     
    12091214
    12101215        if(phi>1 || phi<0) _error_("Error. Problem with portion of grounded element: value should be between 0 and 1");
    1211    //this->inputs->AddInput(new DoubleInput(GroundedPortionEnum,phi));
    12121216
    12131217        return phi;
  • issm/trunk-jpl/src/c/solutions/transient_core.cpp

    r14364 r14368  
    148148                        if(isgroundingline && groundingline_migration==SubelementMigrationEnum){
    149149                                InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,GLlevelsetEnum);
    150                                 //InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,GroundedPortionEnum);
    151150                        }
    152151
Note: See TracChangeset for help on using the changeset viewer.