Changeset 15856
- Timestamp:
- 08/21/13 13:41:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/oldclasses/diagnostic.m
r15855 r15856 25 25 loadingforce = NaN; 26 26 requested_outputs = NaN; 27 end28 methods (Static)29 function obj = loadobj(obj) % {{{30 % This function is directly called by matlab when a model object is31 % loaded. If the input is a struct it is an old version of this class and32 % old fields must be recovered (make sure they are in the deprecated33 % model properties)34 35 if verLessThan('matlab','7.9'),36 disp('Warning: your matlab version is old and there is a risk that load does not work correctly');37 disp(' if the model is not loaded correctly, rename temporarily loadobj so that matlab does not use it');38 39 % This is a Matlab bug: all the fields of md have their default value40 % Example of error message:41 % Warning: Error loading an object of class 'model':42 % Undefined function or method 'exist' for input arguments of type 'cell'43 %44 % This has been fixed in MATLAB 7.9 (R2009b) and later versions45 end46 end% }}}47 27 end 48 28 methods
Note:
See TracChangeset
for help on using the changeset viewer.