Changeset 27404


Ignore:
Timestamp:
11/21/22 08:28:07 (2 years ago)
Author:
Mathieu Morlighem
Message:

CHG: cleanup

Location:
issm/trunk-jpl/src/m/classes
Files:
8 edited

Legend:

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

    r27403 r27404  
    66classdef SMBcomponents
    77        properties (SetAccess=public)
    8                 accumulation = NaN;
    9                 runoff = NaN;
    10                 evaporation = NaN;
    11                 steps_per_step = 1;
    12                 averaging = 0;
    13                 requested_outputs     = {};
    14                 isclimatology;
     8                accumulation      = NaN;
     9                runoff            = NaN;
     10                evaporation       = NaN;
     11                steps_per_step    = 1;
     12                averaging         = 0;
     13                requested_outputs = {};
    1514        end
    1615        methods
  • issm/trunk-jpl/src/m/classes/SMBcomponents.py

    r27403 r27404  
    2121        self.averaging = 0
    2222        self.requested_outputs = []
    23         self.isclimatology = np.nan
    2423
    2524        nargs = len(args)
  • issm/trunk-jpl/src/m/classes/SMBforcing.m

    r27403 r27404  
    1010                requested_outputs = {};
    1111                averaging         = 0;
    12                 isclimatology;
    1312        end
    1413        methods
     
    1615                        switch nargin
    1716                                case 0
    18 
     17                                        self=setdefaultparameters(self);
    1918                                case 1
    2019                                        inputstruct=varargin{1};
     
    9291
    9392                end % }}}
     93                function self = setdefaultparameters(self) % {{{
     94
     95                        %output default:
     96                        self.requested_outputs={'default'};
     97
     98                end % }}}
    9499        end
    95100end
  • issm/trunk-jpl/src/m/classes/SMBforcing.py

    r27403 r27404  
    1919        self.requested_outputs = []
    2020        self.averaging = 0
    21         self.isclimatology = np.nan
    2221
    2322        nargs = len(args)
  • issm/trunk-jpl/src/m/classes/SMBgemb.m

    r27236 r27404  
    1414
    1515                %solution choices
    16                 isgraingrowth;
    17                 isalbedo;
    18                 isshortwave;
    19                 isthermal;
    20                 isaccumulation;
    21                 ismelt;
    22                 isdensification;
    23                 isturbulentflux;
    24                 isconstrainsurfaceT;
    25                 isclimatology;
    26                 isdeltaLWup;
     16                isgraingrowth       = 0;
     17                isalbedo            = 0;
     18                isshortwave         = 0;
     19                isthermal           = 0;
     20                isaccumulation      = 0;
     21                ismelt              = 0;
     22                isdensification     = 0;
     23                isturbulentflux     = 0;
     24                isconstrainsurfaceT = 0;
     25                isdeltaLWup         = 0;
    2726
    2827                %inputs:
  • issm/trunk-jpl/src/m/classes/SMBgemb.py

    r27236 r27404  
    2222
    2323        #solution choices
    24         self.isgraingrowth = 0
    25         self.isalbedo = 0
    26         self.isshortwave = 0
    27         self.isthermal = 0
    28         self.isaccumulation = 0
    29         self.ismelt = 0
    30         self.isdensification = 0
    31         self.isturbulentflux = 0
     24        self.isgraingrowth       = 0
     25        self.isalbedo            = 0
     26        self.isshortwave         = 0
     27        self.isthermal           = 0
     28        self.isaccumulation      = 0
     29        self.ismelt              = 0
     30        self.isdensification     = 0
     31        self.isturbulentflux     = 0
    3232        self.isconstrainsurfaceT = 0
    33         self.isdeltaLWup = 0
    34         self.isclimatology = np.nan
     33        self.isdeltaLWup         = 0
    3534
    3635        # Inputs
  • issm/trunk-jpl/src/m/classes/SMBmeltcomponents.m

    r27403 r27404  
    1313                averaging = 0;
    1414                requested_outputs= {};
    15                 isclimatology;
    1615        end
    1716        methods
  • issm/trunk-jpl/src/m/classes/SMBmeltcomponents.py

    r27403 r27404  
    1515
    1616    def __init__(self, *args):  # {{{
    17         self.accumulation = np.nan
    18         self.evaporation = np.nan
    19         self.melt = np.nan
    20         self.refreeze = np.nan
    21         self.steps_per_step = 1
    22         self.averaging = 0
     17        self.accumulation      = np.nan
     18        self.evaporation       = np.nan
     19        self.melt              = np.nan
     20        self.refreeze          = np.nan
     21        self.steps_per_step    = 1
     22        self.averaging         = 0
    2323        self.requested_outputs = []
    24         self.isclimatology = np.nan
    2524
    2625        if len(args) == 0:
Note: See TracChangeset for help on using the changeset viewer.