Changeset 24976


Ignore:
Timestamp:
06/06/20 13:26:11 (5 years ago)
Author:
Eric.Larour
Message:

CHG: reverse the order, because otherwise, we are generating
uplift under ice shelves from ice loads!

File:
1 edited

Legend:

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

    r24974 r24976  
    60106010        }
    60116011
    6012         if (masks->isiceonly[this->lid]){
     6012
     6013        if(masks->isoceanin[this->lid]){
     6014                /*From Sg, recover water sea level rise:*/
     6015                S=0; for(int i=0;i<NUMVERTICES;i++) S+=Sg[this->vertices[i]->Sid()]/NUMVERTICES;
     6016
     6017                /*convert to kg/m^2:*/
     6018                S=rho_water*S;
     6019
     6020                for(int i=0;i<gsize;i++){
     6021                        Up[i]+=S*GU[i];
     6022                        if(horiz){
     6023                                North[i]+=S*GN[i];
     6024                                East[i]+=S*GE[i];
     6025                        }
     6026                }
     6027        }
     6028        else if (masks->isiceonly[this->lid]){
    60136029
    60146030                /*Compute ice thickness change: */
     
    60256041                                North[i]+=I*GN[i];
    60266042                                East[i]+=I*GE[i];
    6027                         }
    6028                 }
    6029         }
    6030         else if(masks->isoceanin[this->lid]){
    6031                 /*From Sg, recover water sea level rise:*/
    6032                 S=0; for(int i=0;i<NUMVERTICES;i++) S+=Sg[this->vertices[i]->Sid()]/NUMVERTICES;
    6033 
    6034                 /*convert to kg/m^2:*/
    6035                 S=rho_water*S;
    6036 
    6037                 for(int i=0;i<gsize;i++){
    6038                         Up[i]+=S*GU[i];
    6039                         if(horiz){
    6040                                 North[i]+=S*GN[i];
    6041                                 East[i]+=S*GE[i];
    60426043                        }
    60436044                }
Note: See TracChangeset for help on using the changeset viewer.