Changeset 27820


Ignore:
Timestamp:
07/03/23 12:54:20 (21 months ago)
Author:
Cheng Gong
Message:

BUG: convert time using yts in CalvingMIP EXP4

File:
1 edited

Legend:

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

    r27798 r27820  
    11281128        int         dim, domaintype;
    11291129        IssmDouble      vx, vy, vel, c, wrate;
    1130         IssmDouble  time, groundedice;
     1130        IssmDouble  time, groundedice, yts;
    11311131
    11321132        /*Get problem dimension and whether there is moving front or not*/
    11331133        this->FindParam(&domaintype,DomainTypeEnum);
    11341134        this->FindParam(&time,TimeEnum);
     1135        this->FindParam(&yts,ConstantsYtsEnum);
    11351136
    11361137        switch(domaintype){
     
    11761177                        case 4:
    11771178                                /* Exp 4: set c=v-wrate(given), for the first 500 years, then c=0 for the second 500 years*/
    1178                                 if((groundedice<0) && (time<=500.0)) {
     1179                                if((groundedice<0) && (time<=500.0*yts)) {
    11791180                                        wrate_input->GetInputValue(&wrate,&gauss);
    11801181                                }
Note: See TracChangeset for help on using the changeset viewer.