Changeset 10184


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

warning off in loadmodel for petscoptions

Location:
issm/trunk/src/m
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/src/m/classes/model/model.m

    r10183 r10184  
    274274                         if isfield(structmd,'diagnostic_ref'), md.diagnostic.referential=structmd.diagnostic_ref; end
    275275
    276                          disp('-------------- file: model.m line: 276');
    277276                         %Field changes
    278277                         if (isfield(structmd,'type') & ischar(structmd.type)),
     
    283282                                 md.verbose=verbose;
    284283                         end
    285                          disp('-------------- file: model.m line: 285');
    286284                         if isfield(structmd,'spcvelocity'),
    287285                                 md.diagnostic.spcvx=NaN*ones(md.mesh.numberofvertices,1);
  • TabularUnified 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.