Ignore:
Timestamp:
Jun 17, 2013, 6:46:06 PM (11 years ago)
Author:
sommeria
Message:

bugs corrected: handles.TimeName? in uvmat, 0_OAR emptied for culter computations with series.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/calc_field_interp.m

    r648 r650  
    3232    r=regexp(FieldName{ilist},'(?<Operator>(^vec|^norm|^curl|^div|^strain))\((?<UName>.+),(?<VName>.+)\)$','names');% analyse the field name
    3333    if isempty(r) % the field name is a variable itself
    34         ivar=strcmp(FieldName{ilist},Data.ListVarName);
     34        ivar=find(strcmp(FieldName{ilist},Data.ListVarName));
    3535        if isempty(ivar)
    3636            check_skipped(ilist)=1; %variable not found
    3737        else
    38             if isfield(Data.VarAttribute{ivar},'Role')&&strcmp(Data.VarAttribute{ivar}.Role,'ancillary')
    39                 check_skipped(ilist)=1; % ancillary variable, not found interpolated     
     38            if isfield(Data.VarAttribute{ivar},'Role') &&...
     39                (strcmp(Data.VarAttribute{ivar}.Role,'ancillary')||strcmp(Data.VarAttribute{ivar}.Role,'warnflag')||strcmp(Data.VarAttribute{ivar}.Role,'errorflag'))
     40                check_skipped(ilist)=1; % ancillary variable, not interpolated     
    4041            elseif isempty(find(strcmp(FieldName{ilist},InputVarList), 1));
    4142                InputVarList=[InputVarList FieldName{ilist}];% the variable is added to the list of input variables if it is not already in the list
Note: See TracChangeset for help on using the changeset viewer.