Ignore:
Timestamp:
10/12/11 16:01:17 (13 years ago)
Author:
Mathieu Morlighem
Message:

warning off in loadmodel for petscoptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Model/loadmodel.m

    r8952 r10184  
    2020        %recover model on file and name it md
    2121        warning off MATLAB:unknownElementsNowStruc;
     22        warning off MATLAB:load:classNotFound
    2223        struc=load(path,'-mat');
    2324        warning on MATLAB:unknownElementsNowStruc;
     25        warning on MATLAB:load:classNotFound
    2426
    2527        name=char(fieldnames(struc));
     
    2830        end
    2931        md=struc.(name);
    30        
    31         %now, transform md into a new model
    32         if ~strcmpi(class(md),'model') & ~strcmpi(class(md),'planet'),
    33                 md=structtomodel(model,md);
    34         end
    3532        if nargout,
    3633                varargout{1}=md;
Note: See TracChangeset for help on using the changeset viewer.