Changeset 8726


Ignore:
Timestamp:
06/28/11 00:39:02 (14 years ago)
Author:
Eric.Larour
Message:

New exp rotuines.
Fixed loadmodel to include planet class.

Location:
issm/trunk/src/m/utils
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/src/m/utils/Exp/readwrite/expread.m

    r2609 r8726  
    7373        Struct(count).y=A(2,:)';
    7474
     75        if(Struct(count).nods~=length(Struct(count).x))error(['Profile ' num2str(count) ' reports incorrect length']); end;
     76
    7577        %skip last coordinate if whole=0,
    7678   if whole==0, fscanf(fid,'%f %f',[1 2]); end
  • TabularUnified issm/trunk/src/m/utils/Interp/PatchToVec.m

    r8668 r8726  
    55%      vec=PatchToVec(Patch)
    66
    7 %if the patch is P0, we need to transform the vector a little bit first
     7%if the patch is P0: we have element values, return an element vector
    88switch(Patch.interpolation(1)),
    99        case P0Enum,
  • TabularUnified issm/trunk/src/m/utils/Model/loadmodel.m

    r8367 r8726  
    2121        warning off MATLAB:unknownElementsNowStruc;
    2222        struc=load(path,'-mat');
     23
    2324        warning on MATLAB:unknownElementsNowStruc;
    2425
     
    3132       
    3233        %now, transform md into a new model
    33         if ~strcmpi(class(md),'model'),
     34        if ~strcmpi(class(md),'model') & ~strcmpi(class(md),'planet'),
    3435                md2=structtomodel(model,md);
    3536                md=md2;
Note: See TracChangeset for help on using the changeset viewer.