Ignore:
Timestamp:
Dec 12, 2017, 7:18:01 PM (6 years ago)
Author:
sommeria
Message:

bug repaired for ordinary plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_field_cells.m

    r1009 r1023  
    300300check_remove=false(size(CellInfo));
    301301for icell=1:numel(check_remove)
    302     if isempty(CellInfo{icell})||(numel(CellInfo{icell}.VarIndex)==1 && check_coord(icell))
     302    if isempty(CellInfo{icell})||(numel(CellInfo{icell}.VarIndex)==1 && numel(check_coord)>=icell && check_coord(icell))
    303303        check_remove(icell)=1;
    304304    end
Note: See TracChangeset for help on using the changeset viewer.