Changeset 14365


Ignore:
Timestamp:
02/21/13 16:03:13 (12 years ago)
Author:
seroussi
Message:

FIX: inversed mainly floating and mainl grounded

File:
1 edited

Legend:

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

    r14364 r14365  
    11191119        /*Computeportion of the element that is grounded*/
    11201120
    1121         bool mainlyfloating=false;
     1121        bool mainlyfloating=true;
    11221122        IssmDouble phi,s1,s2,area_init,area_grounded;
    11231123        IssmDouble gl[3];
     
    11381138
    11391139                /*Figure out if two nodes are floating or grounded*/
    1140                 if(gl[0]*gl[1]*gl[2]>0) mainlyfloating=true;
     1140                if(gl[0]*gl[1]*gl[2]>0) mainlyfloating=false;
    11411141
    11421142                if(gl[0]*gl[1]>0){ //Nodes 0 and 1 are similar, so points must be found on segment 0-2 and 1-2
Note: See TracChangeset for help on using the changeset viewer.