Ignore:
Timestamp:
May 10, 2018, 8:30:27 AM (6 years ago)
Author:
sommeria
Message:

psmn parameters updated + miscenaleous

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_field_cells.m

    r1027 r1041  
    137137                CellInfo{icell}.CoordSize=prod(CellInfo{icell}.CoordSize);
    138138            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)));
    139142            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
    141145                NbDim(icell)=1;
    142146            else
Note: See TracChangeset for help on using the changeset viewer.