Changeset 27861
- Timestamp:
 - 07/27/23 10:32:21 (2 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  issm/trunk-jpl/src/c/classes/Elements/Tria.cpp (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r27829 r27861 2854 2854 H[3]=Haux[1]+s[1]*(Haux[2]-Haux[1]); 2855 2855 Haverage=(H[2]+H[3])/2; 2856 break; 2857 case 3: 2858 if(counter==1) distance = 0; //front has 0 width on this element because levelset is 0 at a single vertex 2859 else if(counter==2){ //two vertices with levelset=0: averaging ice front depth over both 2860 Haverage = 0; 2861 for(int i=0;i<NUMVERTICES;i++){ 2862 if(lsf[indices[i]]==0.) Haverage -= Haux[indices[i]]/2; 2863 if(Haverage<Haux[indices[i]]/2-1e-3) break; //done with the two vertices 2864 } 2865 } 2856 2866 break; 2857 2867 default:  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)