Changeset 402 for trunk/src/sub_field.m


Ignore:
Timestamp:
Apr 29, 2012, 11:29:24 AM (12 years ago)
Author:
sommeria
Message:

bugs corrected and improved procedure for object projection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sub_field.m

    r180 r402  
    7272end
    7373iselect=find(NbDim==2);
     74for icell=iselect
     75    if ~isempty(VarTypeCell{icell}.coord_tps)
     76        NbDim(icell)=0;
     77    end
     78end
     79iselect=find(NbDim==2);
    7480if ~isequal(numel(iselect),1)
    7581    errormsg='invalid  first input to sub_field: it must  contain a single 2D field cell';
    7682    return
     83end
     84iselect_1=find(NbDim_1==2);
     85for icell=iselect_1
     86    if ~isempty(VarTypeCell_1{icell}.coord_tps)
     87        NbDim_1(icell)=0;
     88    end
    7789end
    7890iselect_1=find(NbDim_1==2);
Note: See TracChangeset for help on using the changeset viewer.