Changeset 648 for trunk/src/calc_field_interp.m
- Timestamp:
- Jun 9, 2013, 10:31:58 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/calc_field_interp.m
r644 r648 32 32 r=regexp(FieldName{ilist},'(?<Operator>(^vec|^norm|^curl|^div|^strain))\((?<UName>.+),(?<VName>.+)\)$','names');% analyse the field name 33 33 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) 35 36 check_skipped(ilist)=1; %variable not found 36 37 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)); 38 41 InputVarList=[InputVarList FieldName{ilist}];% the variable is added to the list of input variables if it is not already in the list 39 42 end
Note: See TracChangeset
for help on using the changeset viewer.