Changeset 11219
- Timestamp:
- 01/26/12 09:27:07 (13 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/debug.m
r11137 r11219 10 10 end 11 11 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 % }}} 12 30 function disp(obj) % {{{ 13 31 disp(sprintf(' debug parameters:')); -
issm/trunk-jpl/src/m/classes/solver.m
r9853 r11219 9 9 end 10 10 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 % }}} 11 29 function obj=addoptions(obj,analysis,solveroptions) % {{{1 12 30 %first, find out if analysis has already been supplied
Note:
See TracChangeset
for help on using the changeset viewer.