Ignore:
Timestamp:
Jun 9, 2013, 10:31:58 PM (7 years ago)
Author:
sommeria
Message:

get_field updated, several bugs corrected,open_uvmat suppressd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/calc_field_interp.m

    r644 r648  
    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         if ~isfield(Data,FieldName{ilist})
     34        ivar=strcmp(FieldName{ilist},Data.ListVarName);
     35        if isempty(ivar)
    3536            check_skipped(ilist)=1; %variable not found
    3637        else
    37             if isempty(find(strcmp(FieldName{ilist},InputVarList), 1));
     38            if isfield(Data.VarAttribute{ivar},'Role')&&strcmp(Data.VarAttribute{ivar}.Role,'ancillary')
     39                check_skipped(ilist)=1; % ancillary variable, not found interpolated     
     40            elseif isempty(find(strcmp(FieldName{ilist},InputVarList), 1));
    3841                InputVarList=[InputVarList FieldName{ilist}];% the variable is added to the list of input variables if it is not already in the list
    3942            end
Note: See TracChangeset for help on using the changeset viewer.