Changeset 17446


Ignore:
Timestamp:
03/17/14 10:44:24 (11 years ago)
Author:
jbondzio
Message:

CHG: making detection of zero levelset in element more general

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

Legend:

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

    r17413 r17446  
    29122912        /*If the level set has always same sign, there is no ice front here*/
    29132913        iszerols = false;
    2914         if(IsIceInElement()){
    2915                 if(ls[0]*ls[1]<0. || ls[0]*ls[2]<0. || (ls[0]*ls[1]+ls[0]*ls[2]+ls[1]*ls[2]==0.)){
    2916                         iszerols = true;
    2917                 }
     2914        if(ls[0]*ls[1]<0. || ls[0]*ls[2]<0. || (ls[0]*ls[1]*ls[2]==0. && ls[0]*ls[1]+ls[0]*ls[2]+ls[1]*ls[2]<=0.)){
     2915                iszerols = true;
    29182916        }
    29192917        return iszerols;
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r17414 r17446  
    23472347        /*If the level set is awlays <0, there is no ice front here*/
    23482348        iszerols= false;
    2349         if(IsIceInElement()){
    2350                 if(ls[0]*ls[1]<0. || ls[0]*ls[2]<0. || (ls[0]*ls[1]+ls[0]*ls[2]+ls[1]*ls[2]==0.)){
    2351                         iszerols= true;
    2352                 }
     2349        if(ls[0]*ls[1]<0. || ls[0]*ls[2]<0. || (ls[0]*ls[1]*ls[2]==0. && ls[0]*ls[1]+ls[0]*ls[2]+ls[1]*ls[2]<=0.)){
     2350                iszerols = true;
    23532351        }
    23542352
Note: See TracChangeset for help on using the changeset viewer.