Changeset 576 for trunk/src/find_field_cells.m
- Timestamp:
- Mar 4, 2013, 8:13:53 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/find_field_cells.m
r575 r576 20 20 % _warnflag: index of warnflag 21 21 % .FieldRequest= 'interp_lin', 'interp_tps' indicate whether lin interpolation or derivatives (tps) is needed to calculate the requested field 22 % . Operation= operation to be performed to finalise the field cell after projection22 % .FieldName = operation to be performed to finalise the field cell after projection 23 23 % .SubCheck=0 /1 indicate that the field must be substracted (second entry in uvmat) 24 24 % NbDim: array with the length of CellVarIndex, giving the space dimension of each field cell … … 87 87 Role=num2cell(blanks(nbvar));%initialize a cell array of nbvar blanks 88 88 FieldRequest=regexprep(Role,' ',''); % fieldRequest set to '' by default 89 Operation=cell(size(Role)); % fieldRequest set to {} by default89 FieldName=cell(size(Role)); % fieldRequest set to {} by default 90 90 CheckSub=zeros(size(Role));% =1 for fields to substract 91 91 Role=regexprep(Role,' ','scalar'); % Role set to 'scalar' by default … … 98 98 FieldRequest{ivar}=Data.VarAttribute{ivar}.FieldRequest; 99 99 end 100 if isfield(Data.VarAttribute{ivar},' Operation')101 Operation{ivar}=Data.VarAttribute{ivar}.Operation;100 if isfield(Data.VarAttribute{ivar},'FieldName') 101 FieldName{ivar}=Data.VarAttribute{ivar}.FieldName; 102 102 end 103 103 if isfield(Data.VarAttribute{ivar},'CheckSub') … … 318 318 CellInfo{icell}.FieldRequest=FieldRequest{ivar}; 319 319 end 320 if ~isempty( Operation{ivar})321 CellInfo{icell}. Operation=Operation{ivar};320 if ~isempty(FieldName{ivar}) 321 CellInfo{icell}.FieldName=FieldName{ivar}; 322 322 end 323 323 if CheckSub(ivar)==1
Note: See TracChangeset
for help on using the changeset viewer.