Changeset 10184
- Timestamp:
- 10/12/11 16:01:17 (13 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/m/classes/model/model.m ¶
r10183 r10184 274 274 if isfield(structmd,'diagnostic_ref'), md.diagnostic.referential=structmd.diagnostic_ref; end 275 275 276 disp('-------------- file: model.m line: 276');277 276 %Field changes 278 277 if (isfield(structmd,'type') & ischar(structmd.type)), … … 283 282 md.verbose=verbose; 284 283 end 285 disp('-------------- file: model.m line: 285');286 284 if isfield(structmd,'spcvelocity'), 287 285 md.diagnostic.spcvx=NaN*ones(md.mesh.numberofvertices,1); -
TabularUnified issm/trunk/src/m/utils/Model/loadmodel.m ¶
r8952 r10184 20 20 %recover model on file and name it md 21 21 warning off MATLAB:unknownElementsNowStruc; 22 warning off MATLAB:load:classNotFound 22 23 struc=load(path,'-mat'); 23 24 warning on MATLAB:unknownElementsNowStruc; 25 warning on MATLAB:load:classNotFound 24 26 25 27 name=char(fieldnames(struc)); … … 28 30 end 29 31 md=struc.(name); 30 31 %now, transform md into a new model32 if ~strcmpi(class(md),'model') & ~strcmpi(class(md),'planet'),33 md=structtomodel(model,md);34 end35 32 if nargout, 36 33 varargout{1}=md;
Note:
See TracChangeset
for help on using the changeset viewer.