Changeset 24203


Ignore:
Timestamp:
10/03/19 15:02:49 (5 years ago)
Author:
schlegel
Message:

CHG: adding paren in GEMB density test, move double marshall in matlab gemb, and updating archives

Location:
issm/trunk-jpl
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp

    r24195 r24203  
    127127
    128128        // temperature coefficient F
    129         if(T>-6.0+Ttol) F =  0.7 + ((T/-6.0) * 0.3);
    130         if(T<=-6.0+Ttol && T>-22.0+Ttol) F =  1.0 - ((T+6.0)/-16.0 * 0.8);
    131         if(T<=-22.0+Ttol && T>-40.0+Ttol) F =  0.2 - ((T+22.0)/-18.0 * 0.2);
     129        if(T> -6.0+Ttol) F =  0.7 + ((T/-6.0) * 0.3);
     130        if(T<= -6.0+Ttol && T> -22.0+Ttol) F =  1.0 - ((T+6.0)/-16.0 * 0.8);
     131        if(T<= -22.0+Ttol && T> -40.0+Ttol) F =  0.2 - ((T+22.0)/-18.0 * 0.2);
    132132
    133133        // density coefficient F
    134         if(d<150.0-Dtol) H=1.0;
    135 
    136         if(d>=150.0-Dtol & d<400.0-Dtol) H = 1.0 - ((d-150.0)/250.0);
     134        if(d< 150.0-Dtol) H=1.0;
     135
     136        if(d>= 150.0-Dtol && d <400.0-Dtol) H = 1.0 - ((d-150.0)/250.0);
    137137
    138138        // temperature gradient coefficient G
     
    204204
    205205        /*only when aIdx = 1 or 2 do we run grainGrowth: */
    206         if(aIdx!=1 & aIdx!=2){
     206        if(aIdx!=1 && aIdx!=2){
    207207                /*come out as we came in: */
    208208                return;
     
    412412        const IssmDouble dSnow = 300;   // density of fresh snow [kg m-3]       
    413413
    414         if(aIdx==0 || (adThresh - d[0]<Dtol)){
     414        if(aIdx==0 || (d[0]-adThresh)<Dtol){
    415415                a[0] = aValue;
    416416        }
     
    11041104           adjusts the properties of the top grid cell to account for accumulation
    11051105           T_air & T = Air and top grid cell temperatures [K]
     1106                Tmean =  average surface temperature [K]
    11061107                Vmean =  average wind velocity [m s-1]
    11071108                V =  wind velocity [m s-1]
  • issm/trunk-jpl/src/m/classes/SMBgemb.m

    r24194 r24203  
    415415                        WriteData(fid,prefix,'object',self,'class','smb','fieldname','denIdx','format','Integer');
    416416                        WriteData(fid,prefix,'object',self,'class','smb','fieldname','dsnowIdx','format','Integer');
    417                         WriteData(fid,prefix,'object',self,'class','smb','fieldname','dsnowIdx','format','Integer');
    418417                        WriteData(fid,prefix,'object',self,'class','smb','fieldname','InitDensityScaling','format','Double');
    419418                        WriteData(fid,prefix,'object',self,'class','smb','fieldname','ThermoDeltaTScaling','format','Double');
  • issm/trunk-jpl/test/NightlyRun/test243.m

    r24193 r24203  
    4848%Fields and tolerances to track changes
    4949field_names      ={'SmbDz','SmbT' ,'SmbD' ,'SmbRe','SmbGdn','SmbGsp','SmbA' ,'SmbEC','SmbMassBalance','SmbMAdd','SmbDzAdd','SmbFAC','SmbMeanSHF','SmbMeanLHF','SmbMeanULW','SmbNetLW','SmbNetSW'};
    50 field_tolerances ={1e-11,1e-12,1e-11,2e-11,1e-11,1e-11,1e-12,4e-12,1e-12,1e-12,1e-12,2e-10,2e-11, 2e-11, 1e-11, 1e-9, 2e-11};
     50field_tolerances ={1e-11,1e-12,1e-11,2e-11,1e-11,1e-11,1e-12,4e-12,1e-12,1e-12,1e-12,2e-10,2e-11, 2e-11, 1e-11, 2e-9, 2e-11};
    5151
    5252field_values={...
  • issm/trunk-jpl/test/NightlyRun/test243.py

    r24193 r24203  
    6262#Fields and tolerances to track changes
    6363field_names = ['SmbDz', 'SmbT', 'SmbD', 'SmbRe', 'SmbGdn', 'SmbGsp', 'SmbA', 'SmbEC', 'SmbMassBalance', 'SmbMAdd', 'SmbDzAdd', 'SmbFAC', 'SmbMeanSHF', 'SmbMeanLHF', 'SmbMeanULW', 'SmbNetLW', 'SmbNetSW']
    64 field_tolerances = [1e-11, 1e-12, 1e-11, 2e-11, 1e-11, 1e-11, 1e-12, 4e-12, 1e-12, 1e-12, 1e-12, 2e-10, 2e-11, 2e-11, 1e-11, 1e-9, 2e-11]
     64field_tolerances = [1e-11, 1e-12, 1e-11, 2e-11, 1e-11, 1e-11, 1e-12, 4e-12, 1e-12, 1e-12, 1e-12, 2e-10, 2e-11, 2e-11, 1e-11, 2e-9, 2e-11]
    6565#shape is different in python solution (fixed using reshape) which can cause test failure:
    6666field_values = [md.results.TransientSolution[-1].SmbDz[0, 0:240].reshape(1, -1),
Note: See TracChangeset for help on using the changeset viewer.