Changeset 1041 for trunk/src/find_field_cells.m
- Timestamp:
- May 10, 2018, 8:30:27 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/find_field_cells.m
r1027 r1041 137 137 CellInfo{icell}.CoordSize=prod(CellInfo{icell}.CoordSize); 138 138 end 139 ind_scalar=find(strcmp('scalar',Role(VarIndex))); 140 ind_vector_x=find(strcmp('vector_x',Role(VarIndex))); 141 ind_vector_y=find(strcmp('vector_y',Role(VarIndex))); 139 142 ind_y=find(strcmp('coord_y',Role(VarIndex))); 140 if numel(VarIndex)==2||isempty(ind_y)% no variable, except possibly y 143 if numel([ind_scalar ind_vector_x ind_vector_y])==0 144 % if numel(VarIndex)==2||isempty(ind_y)% no variable, except possibly y 141 145 NbDim(icell)=1; 142 146 else
Note: See TracChangeset
for help on using the changeset viewer.