Changeset 579 for trunk/src/uvmat.m


Ignore:
Timestamp:
Mar 6, 2013, 9:20:51 PM (8 years ago)
Author:
sommeria
Message:

bugs corrected for reading vort div

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r576 r579  
    24642464        if strcmp(CellInfo{imax(ind)}.CoordType,'tps')
    24652465            CoordName=UvData.Field.ListVarName{CellInfo{imax(ind)}.CoordIndex};% X,Y coordinates in a single variable
    2466             CoordMax(ind,NbDim)=max(UvData.Field.(CoordName)(1:end-3,1,:));
    2467             CoordMax(ind,NbDim-1)=max(UvData.Field.(CoordName)(1:end-3,2,:));
    2468             CoordMin(ind,NbDim)=min(UvData.Field.(CoordName)(1:end-3,1,:));
    2469             CoordMin(ind,NbDim-1)=min(UvData.Field.(CoordName)(1:end-3,2,:));
     2466            CoordMax(ind,NbDim)=max(max(UvData.Field.(CoordName)(1:end-3,1,:),[],1),[],3);% max of x component (2D case)
     2467            CoordMax(ind,NbDim-1)=max(max(UvData.Field.(CoordName)(1:end-3,2,:),[],1),[],3);% max of y component (2D case)
     2468            CoordMin(ind,NbDim)=min(min(UvData.Field.(CoordName)(1:end-3,1,:),[],1),[],3);
     2469            CoordMin(ind,NbDim-1)=min(min(UvData.Field.(CoordName)(1:end-3,2,:),[],1),[],3);% min of y component (2D case)
    24702470        else
    24712471            XName=UvData.Field.ListVarName{CellInfo{imax(ind)}.CoordIndex(end)};
Note: See TracChangeset for help on using the changeset viewer.