Changeset 667 for trunk/src/calc_field_interp.m
 Timestamp:
 Jul 15, 2013, 2:50:08 PM (11 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/calc_field_interp.m
r654 r667 88 88 case 'vec' 89 89 if exist('XI','var') 90 if check_interp 90 if check_interp(ilist) 91 91 VarVal{nbvar+1}=F.(UName{ilist})(XI,YI); 92 92 VarVal{nbvar+2}=F.(VName{ilist})(XI,YI); … … 102 102 case 'norm' 103 103 if exist('XI','var') 104 if check_interp 104 if check_interp(ilist) 105 105 U2=F.(UName{ilist})(XI,YI).*F.(UName{ilist})(XI,YI); 106 106 V2=F.(VName{ilist})(XI,YI).*F.(VName{ilist})(XI,YI); … … 115 115 case {'curl','div','strain'} 116 116 if exist('XI','var') 117 if check_interp 117 if check_interp(ilist) 118 118 VarVal{nbvar+1}=F.(UName{ilist})(XI,YI); 119 119 end … … 126 126 if ~isempty(FieldName{ilist}) 127 127 if exist('XI','var') 128 if check_interp 128 if check_interp(ilist) 129 129 VarVal{nbvar+1}=F.(FieldName{ilist})(XI,YI); 130 130 end … … 141 141 %% put an error flag to indicate NaN data 142 142 if exist('XI','var')&&~isempty(VarVal) 143 nbvar=numel( ListVarName);143 nbvar=numel(VarVal); 144 144 ListVarName{nbvar+1}='FF'; 145 145 VarVal{nbvar+1}=isnan(VarVal{nbvar});
Note: See TracChangeset
for help on using the changeset viewer.