Changeset 11869
- Timestamp:
- 04/03/12 09:13:38 (13 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/autodiff.m
r10969 r11869 15 15 case 0 16 16 obj=setdefaultparameters(obj); 17 case 118 in=varargin{1};19 if (isa(in,'numeric') & in==0),20 % requesting templates do nothing21 else22 error('constructor not supported');23 end24 17 otherwise 25 18 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/balancethickness.m
r10969 r11869 15 15 case 0 16 16 obj=setdefaultparameters(obj); 17 case 118 in=varargin{1};19 if (isa(in,'numeric') & in==0),20 % requesting templates do nothing21 else22 error('constructor not supported');23 end24 17 otherwise 25 18 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/basalforcings.m
r10999 r11869 15 15 case 0 16 16 obj=setdefaultparameters(obj); 17 case 118 in=varargin{1};19 if (isa(in,'numeric') & in==0),20 % requesting templates do nothing21 else22 error('constructor not supported');23 end24 17 otherwise 25 18 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/constants.m
r11133 r11869 15 15 case 0 16 16 obj=setdefaultparameters(obj); 17 case 118 in=varargin{1};19 if (isa(in,'numeric') & in==0),20 % requesting templates do nothing21 else22 error('constructor not supported');23 end24 17 otherwise 25 18 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/debug.m
r11219 r11869 14 14 case 0 15 15 obj=setdefaultparameters(obj); 16 case 117 in=varargin{1};18 if (isa(in,'numeric') & in==0),19 % requesting templates do nothing20 else21 error('constructor not supported');22 end23 16 otherwise 24 17 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/diagnostic.m
r11322 r11869 30 30 case 0 31 31 obj=setdefaultparameters(obj); 32 case 133 in=varargin{1};34 if (isa(in,'numeric') & in==0),35 % requesting templates do nothing36 else37 error('constructor not supported');38 end39 32 otherwise 40 33 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/flaim.m
r11220 r11869 25 25 case 0 26 26 obj=setdefaultparameters(obj); 27 case 128 in=varargin{1};29 if (isa(in,'numeric') & in==0),30 % requesting templates do nothing31 else32 error('constructor not supported');33 end34 27 otherwise 35 28 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/flowequation.m
r11136 r11869 20 20 case 0 21 21 obj=setdefaultparameters(obj); 22 case 123 in=varargin{1};24 if (isa(in,'numeric') & in==0),25 % requesting templates do nothing26 else27 error('constructor not supported');28 end29 22 otherwise 30 23 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/friction.m
r11674 r11869 15 15 case 0 16 16 obj=setdefaultparameters(obj); 17 case 118 in=varargin{1};19 if (isa(in,'numeric') & in==0),20 % requesting templates do nothing21 else22 error('constructor not supported');23 end24 17 otherwise 25 18 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/geometry.m
r11806 r11869 17 17 case 0 18 18 obj=setdefaultparameters(obj); 19 case 120 in=varargin{1};21 if (isa(in,'numeric') & in==0),22 % requesting templates do nothing23 else24 error('constructor not supported');25 end26 19 otherwise 27 20 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/groundingline.m
r10969 r11869 14 14 case 0 15 15 obj=setdefaultparameters(obj); 16 case 117 in=varargin{1};18 if (isa(in,'numeric') & in==0),19 % requesting templates do nothing20 else21 error('constructor not supported');22 end23 16 otherwise 24 17 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/hydrology.m
r11141 r11869 19 19 case 0 20 20 obj=setdefaultparameters(obj); 21 case 122 in=varargin{1};23 if (isa(in,'numeric') & in==0),24 % requesting templates do nothing25 else26 error('constructor not supported');27 end28 21 otherwise 29 22 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/initialization.m
r11347 r11869 20 20 case 0 21 21 obj=setdefaultparameters(obj); 22 case 123 in=varargin{1};24 if (isa(in,'numeric') & in==0),25 % requesting templates do nothing26 else27 error('constructor not supported');28 end29 22 otherwise 30 23 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/inversion.m
r11525 r11869 31 31 case 0 32 32 obj=setdefaultparameters(obj); 33 case 134 in=varargin{1};35 if (isa(in,'numeric') & in==0),36 % requesting templates do nothing37 else38 error('constructor not supported');39 end40 33 otherwise 41 34 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/mask.m
r10969 r11869 18 18 case 0 19 19 obj=setdefaultparameters(obj); 20 case 121 in=varargin{1};22 if (isa(in,'numeric') & in==0),23 % requesting templates do nothing24 else25 error('constructor not supported');26 end27 20 otherwise 28 21 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/materials.m
r10969 r11869 25 25 case 0 26 26 obj=setdefaultparameters(obj); 27 case 128 in=varargin{1};29 if (isa(in,'numeric') & in==0),30 % requesting templates do nothing31 else32 error('constructor not supported');33 end34 27 otherwise 35 28 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/mesh.m
r11576 r11869 51 51 case 0 52 52 obj=setdefaultparameters(obj); 53 case 154 in=varargin{1};55 if (isa(in,'numeric') & in==0),56 % requesting templates do nothing57 else58 error('constructor not supported');59 end60 53 otherwise 61 54 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/miscellaneous.m
r10969 r11869 15 15 case 0 16 16 obj=setdefaultparameters(obj); 17 case 118 in=varargin{1};19 if (isa(in,'numeric') & in==0),20 % requesting templates do nothing21 else22 error('constructor not supported');23 end24 17 otherwise 25 18 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/model/model.m
r11664 r11869 73 73 end 74 74 end% }}} 75 function temp = template() % {{{76 77 %Get default fields78 md=model(0);79 modelprops=properties('model');80 81 %build output82 temp=struct();83 for i=1:length(modelprops),84 temp.(modelprops{i})=md.(modelprops{i});85 end86 87 end% }}}88 75 end 89 76 methods … … 93 80 case 0 94 81 md=setdefaultparameters(md); 95 case 196 in=varargin{1};97 if (isa(in,'model'))98 %If single argument of class model, we have a copy constructor.99 md = in;100 elseif (isa(in,'numeric') & in==0)101 %requesting template102 %FIXME: for now recursive call103 md2=model;104 modelprops=properties('model');105 for i=1:length(modelprops);106 fieldname=modelprops{i};107 if md.(fieldname).marshall & isobject(md2.(fieldname)) & isempty(md.(fieldname).preprocess),108 eval(['md.' fieldname '=' fieldname '(0);']);109 end110 end111 else112 error('model constructor error message: unknown constructor for ''model'' class object');113 end114 115 82 otherwise 116 83 error('model constructor error message: 0 of 1 argument only in input.'); -
issm/trunk-jpl/src/m/classes/private.m
r10969 r11869 15 15 case 0 16 16 obj=setdefaultparameters(obj); 17 case 118 in=varargin{1};19 if (isa(in,'numeric') & in==0),20 % requesting templates do nothing21 else22 error('constructor not supported');23 end24 17 otherwise 25 18 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/prognostic.m
r11559 r11869 18 18 case 0 19 19 obj=setdefaultparameters(obj); 20 case 121 in=varargin{1};22 if (isa(in,'numeric') & in==0),23 % requesting templates do nothing24 else25 error('constructor not supported');26 end27 20 otherwise 28 21 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/qmu.m
r10969 r11869 28 28 case 0 29 29 obj=setdefaultparameters(obj); 30 case 131 in=varargin{1};32 if (isa(in,'numeric') & in==0),33 % requesting templates do nothing34 else35 error('constructor not supported');36 end37 30 otherwise 38 31 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/radaroverlay.m
r11220 r11869 15 15 case 0 16 16 obj=setdefaultparameters(obj); 17 case 118 in=varargin{1};19 if (isa(in,'numeric') & in==0),20 % requesting templates do nothing21 else22 error('constructor not supported');23 end24 17 otherwise 25 18 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/rifts.m
r10992 r11869 14 14 case 0 15 15 obj=setdefaultparameters(obj); 16 case 117 in=varargin{1};18 if (isa(in,'numeric') & in==0),19 % requesting templates do nothing20 else21 error('constructor not supported');22 end23 16 otherwise 24 17 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/settings.m
r10975 r11869 17 17 case 0 18 18 obj=setdefaultparameters(obj); 19 case 120 in=varargin{1};21 if (isa(in,'numeric') & in==0),22 % requesting templates do nothing23 else24 error('constructor not supported');25 end26 19 otherwise 27 20 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/solver.m
r11466 r11869 13 13 case 0 14 14 obj=setdefaultparameters(obj); 15 case 116 in=varargin{1};17 if (isa(in,'numeric') & in==0),18 % requesting templates do nothing19 else20 error('constructor not supported');21 end22 15 otherwise 23 16 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/steadystate.m
r11816 r11869 15 15 case 0 16 16 obj=setdefaultparameters(obj); 17 case 118 in=varargin{1};19 if (isa(in,'numeric') & in==0),20 % requesting templates do nothing21 else22 error('constructor not supported');23 end24 17 otherwise 25 18 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/surfaceforcings.m
r11529 r11869 14 14 case 0 15 15 obj=setdefaultparameters(obj); 16 case 117 in=varargin{1};18 if (isa(in,'numeric') & in==0),19 % requesting templates do nothing20 else21 error('constructor not supported');22 end23 16 otherwise 24 17 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/thermal.m
r11356 r11869 19 19 case 0 20 20 obj=setdefaultparameters(obj); 21 case 122 in=varargin{1};23 if (isa(in,'numeric') & in==0),24 % requesting templates do nothing25 else26 error('constructor not supported');27 end28 21 otherwise 29 22 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/timestepping.m
r11810 r11869 17 17 case 0 18 18 obj=setdefaultparameters(obj); 19 case 120 in=varargin{1};21 if (isa(in,'numeric') & in==0),22 % requesting templates do nothing23 else24 error('constructor not supported');25 end26 19 otherwise 27 20 error('constructor not supported'); -
issm/trunk-jpl/src/m/classes/transient.m
r10969 r11869 17 17 case 0 18 18 obj=setdefaultparameters(obj); 19 case 120 in=varargin{1};21 if (isa(in,'numeric') & in==0),22 % requesting templates do nothing23 else24 error('constructor not supported');25 end26 19 otherwise 27 20 error('constructor not supported');
Note:
See TracChangeset
for help on using the changeset viewer.