Ignore:
Timestamp:
Aug 27, 2013, 11:25:21 PM (11 years ago)
Author:
sommeria
Message:

various bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_field_cells.m

    r674 r675  
    176176                CellInfo{icell}.NbCentres_tps= ivar_remain(ivardim);% nbre of sites for each tps subdomain
    177177                check_cell(ivar_remain(ivardim))=1;% mark the variable as selected
    178             elseif strcmp(VarDimName{ivardim}{1},DimCell{2}) && strcmp(VarDimName{ivardim}{3},DimCell{3})
     178            elseif strcmp(VarDimName{ivardim}{1},DimCell{2}) && numel(VarDimName{ivardim})>=3 && strcmp(VarDimName{ivardim}{3},DimCell{3})
    179179                CellInfo{icell}.SubRange_tps=ivar_remain(ivardim);% subrange definiton for tps
    180180                check_cell(ivar_remain(ivardim))=1;% mark the variable as selected
     
    247247end
    248248
    249 % group the remaining variables in cells sharing the same coordinate variables
     249%% group the remaining variables in cells sharing the same coordinate variables
    250250NewCellInfo={};
    251251NewCellDimIndex={};
Note: See TracChangeset for help on using the changeset viewer.