Changeset 24805


Ignore:
Timestamp:
05/05/20 11:21:02 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing 245

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/SMBpddSicopolis.m

    r24803 r24805  
    66classdef SMBpddSicopolis
    77        properties (SetAccess=public)
    8                 precipitation                                   = NaN;
    9                 monthlytemperatures                     = NaN;
    10                 temperature_anomaly                     = NaN;
    11                 precipitation_anomaly           = NaN;
    12                 smb_corr                                                        = NaN;
    13                 desfac                                                  = 0;
    14                 s0p                                                             = NaN;
    15                 s0t                                                             = NaN;
    16                 rlaps                                                           = 0;
    17                 isfirnwarming                                   = 0;
    18                 steps_per_step=1
    19                 requested_outputs                               = {};
     8                precipitation         = NaN;
     9                monthlytemperatures   = NaN;
     10                temperature_anomaly   = NaN;
     11                precipitation_anomaly = NaN;
     12                smb_corr              = NaN;
     13                desfac                = 0;
     14                s0p                   = NaN;
     15                s0t                   = NaN;
     16                rlaps                 = 0;
     17                isfirnwarming         = 0;
     18                steps_per_step        = 1
     19                averaging             = 0
     20                requested_outputs     = {};
    2021        end
    2122        methods
     
    8687                        end
    8788                        md = checkfield(md,'fieldname','smb.steps_per_step','>=',1,'numel',[1]);
     89         md = checkfield(md,'fieldname','smb.averaging', 'numel', [1], 'values', [0, 1, 2]);
    8890                        md = checkfield(md,'fieldname','smb.requested_outputs','stringrow',1);
    8991
     
    104106                        fielddisplay(self,'isfirnwarming','is firnwarming (Reeh 1991) activated (0 or 1, default is 1)');
    105107                        fielddisplay(self, 'steps_per_step', 'number of smb steps per time step');
     108         fielddisplay(self, 'averaging', 'averaging methods from short to long steps');
    106109                        disp(sprintf('%55s  0: Arithmetic (default)'));
    107110                        disp(sprintf('%55s  0: Geometric'));
     
    127130                        WriteData(fid,prefix,'object',self,'class','smb','fieldname','smb_corr','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
    128131                        WriteData(fid, prefix, 'object', self, 'fieldname', 'steps_per_step', 'format', 'Integer');
     132         WriteData(fid, prefix, 'object', self, 'fieldname', 'averaging', 'format', 'Integer');
    129133
    130134                        %process requested outputs
Note: See TracChangeset for help on using the changeset viewer.