Changeset 1078 for trunk/src/calc_field_interp.m
- Timestamp:
- Mar 30, 2020, 3:48:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/calc_field_interp.m
r1071 r1078 54 54 if isempty(ivar)% the requested variable does not exist 55 55 check_skipped(ilist)=1; %variable not found 56 elseif isempty(find(strcmp(FieldName{ilist},InputVarList), 1)) ;% the variable exists and has not been already selected56 elseif isempty(find(strcmp(FieldName{ilist},InputVarList), 1))% the variable exists and has not been already selected 57 57 if exist('XI','var')&& isfield(Data.VarAttribute{ivar},'Role') &&... 58 58 (strcmp(Data.VarAttribute{ivar}.Role,'ancillary')||strcmp(Data.VarAttribute{ivar}.Role,'warnflag')||strcmp(Data.VarAttribute{ivar}.Role,'errorflag')) … … 86 86 UName{ilist}=r.UName; 87 87 VName{ilist}=r.VName; 88 if isempty(find(strcmp(r.UName,InputVarList))) ;88 if isempty(find(strcmp(r.UName,InputVarList))) 89 89 InputVarList=[InputVarList UName{ilist}]; %the variable is added to the list if it is not already in the list 90 90 end 91 if isempty(find(strcmp(r.VName,InputVarList), 1)) ;91 if isempty(find(strcmp(r.VName,InputVarList), 1)) 92 92 InputVarList=[InputVarList VName{ilist}]; %the variable is added to the list if it is not already in the list 93 93 end … … 162 162 end 163 163 164 %% put an error flag to indicate NaN data165 % if exist('XI','var')&&~isempty(VarVal)166 % nbvar=numel(VarVal);167 % ListVarName{nbvar+1}='FF';168 % VarVal{nbvar+1}=isnan(VarVal{nbvar});169 % VarAttribute{nbvar+1}.Role='errorflag';170 % end171 164 172 165
Note: See TracChangeset
for help on using the changeset viewer.