Changeset 26684


Ignore:
Timestamp:
12/01/21 12:19:06 (3 years ago)
Author:
vverjans
Message:

CHG: activate updated calculation of IceVolume() and TotalSmb() for partially ice-covered elements

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

Legend:

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

    r26653 r26684  
    21902190        Element::GetInputListOnVertices(&lsf[0],MaskIceLevelsetEnum);
    21912191        /*Deal with partially ice-covered elements*/
    2192         if(false && (lsf[0]*lsf[1]<=0 || lsf[0]*lsf[2]<=0 || lsf[1]*lsf[2]<=0)){
     2192        if(lsf[0]*lsf[1]<=0 || lsf[0]*lsf[2]<=0 || lsf[1]*lsf[2]<=0){
    21932193                bool        istrapneg;
    21942194                int         point;
     
    44044404        /*Now get the average SMB over the element*/
    44054405        Element::GetInputListOnVertices(&lsf[0],MaskIceLevelsetEnum);
    4406    if(false && (lsf[0]*lsf[1]<=0 || lsf[0]*lsf[2]<=0 || lsf[1]*lsf[2]<=0)){
     4406   if(lsf[0]*lsf[1]<=0 || lsf[0]*lsf[2]<=0 || lsf[1]*lsf[2]<=0){
    44074407                /*Partially ice-covered element*/
    44084408                bool mainlyice;
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r26653 r26684  
    35493549        Element::GetInputListOnVertices(&lsf[0],MaskIceLevelsetEnum);
    35503550   /*Deal with partially ice-covered elements*/
    3551         if(false && (lsf[0]*lsf[1]<=0 || lsf[0]*lsf[2]<=0 || lsf[1]*lsf[2]<=0)){
     3551        if(lsf[0]*lsf[1]<=0 || lsf[0]*lsf[2]<=0 || lsf[1]*lsf[2]<=0){
    35523552                bool istrapneg;
    35533553      int point;
     
    54965496        /*Now get the average SMB over the element*/
    54975497        Element::GetInputListOnVertices(&lsf[0],MaskIceLevelsetEnum);
    5498         if(false && (lsf[0]*lsf[1]<=0 || lsf[0]*lsf[2]<=0 || lsf[1]*lsf[2]<=0)){
     5498        if(lsf[0]*lsf[1]<=0 || lsf[0]*lsf[2]<=0 || lsf[1]*lsf[2]<=0){
    54995499                /*Partially ice-covered element*/
    55005500                bool mainlyice;
Note: See TracChangeset for help on using the changeset viewer.