Changeset 11219


Ignore:
Timestamp:
01/26/12 09:27:07 (13 years ago)
Author:
Mathieu Morlighem
Message:

Added some missing constructors

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

Legend:

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

    r11137 r11219  
    1010        end
    1111        methods
     12                function obj = debug(varargin) % {{{
     13                        switch nargin
     14                                case 0
     15                                        obj=setdefaultparameters(obj);
     16                                case 1
     17                                        in=varargin{1};
     18                                        if (isa(in,'numeric') & in==0),
     19                                                % requesting templates do nothing
     20                                        else
     21                                                error('constructor not supported');
     22                                        end
     23                                otherwise
     24                                        error('constructor not supported');
     25                                end
     26                        end % }}}
     27                function obj = setdefaultparameters(obj) % {{{
     28
     29                end % }}}
    1230                function disp(obj) % {{{
    1331                        disp(sprintf('   debug parameters:'));
  • issm/trunk-jpl/src/m/classes/solver.m

    r9853 r11219  
    99         end
    1010         methods
     11                 function obj = solver(varargin) % {{{
     12                         switch nargin
     13                                 case 0
     14                                         obj=setdefaultparameters(obj);
     15                                 case 1
     16                                         in=varargin{1};
     17                                         if (isa(in,'numeric') & in==0),
     18                                                 % requesting templates do nothing
     19                                         else
     20                                                 error('constructor not supported');
     21                                         end
     22                                 otherwise
     23                                         error('constructor not supported');
     24                                 end
     25                         end % }}}
     26                 function obj = setdefaultparameters(obj) % {{{
     27
     28                 end % }}}
    1129                 function obj=addoptions(obj,analysis,solveroptions) % {{{1
    1230                         %first, find out if analysis has already been supplied
Note: See TracChangeset for help on using the changeset viewer.