Changeset 27538


Ignore:
Timestamp:
01/24/23 08:28:00 (2 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added perturbation to linear melt calculation

File:
1 edited

Legend:

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

    r27515 r27538  
    25352535        IssmDouble deepwaterel,upperwaterel,deepwatermelt,upperwatermelt;
    25362536        IssmDouble base[MAXVERTICES];
     2537        IssmDouble perturbation[MAXVERTICES];
    25372538        IssmDouble values[MAXVERTICES];
    25382539        IssmDouble time;
     
    25462547
    25472548        this->GetInputListOnVertices(&base[0],BaseEnum);
     2549        this->GetInputListOnVertices(&perturbation[0],BasalforcingsPerturbationMeltingRateEnum);
    25482550        for(int i=0;i<NUM_VERTICES;i++){
    25492551                if(base[i]>=upperwaterel){
     
    25572559                        values[i]=deepwatermelt*alpha+(1.-alpha)*upperwatermelt;
    25582560                }
     2561
     2562                /*Add perturbation*/
     2563                values[i] += perturbation[i];
    25592564        }
    25602565
Note: See TracChangeset for help on using the changeset viewer.