Ignore:
Timestamp:
Mar 4, 2013, 8:13:53 AM (12 years ago)
Author:
sommeria
Message:

grid improved for civ: computation done closer to the edge. set_grid improved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_field_cells.m

    r575 r576  
    2020%              _warnflag: index of warnflag   
    2121%      .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 projection
     22%      .FieldName = operation to be performed to finalise the field cell after projection
    2323%      .SubCheck=0 /1 indicate that the field must be substracted (second  entry in uvmat)
    2424% NbDim: array with the length of CellVarIndex, giving the space dimension of each field cell
     
    8787Role=num2cell(blanks(nbvar));%initialize a cell array of nbvar blanks
    8888FieldRequest=regexprep(Role,' ',''); % fieldRequest set to '' by default
    89 Operation=cell(size(Role)); % fieldRequest set to {} by default
     89FieldName=cell(size(Role)); % fieldRequest set to {} by default
    9090CheckSub=zeros(size(Role));% =1 for fields to substract
    9191Role=regexprep(Role,' ','scalar'); % Role set to 'scalar' by default
     
    9898            FieldRequest{ivar}=Data.VarAttribute{ivar}.FieldRequest;
    9999        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;
    102102        end
    103103        if isfield(Data.VarAttribute{ivar},'CheckSub')
     
    318318            CellInfo{icell}.FieldRequest=FieldRequest{ivar};
    319319        end
    320         if ~isempty(Operation{ivar})
    321             CellInfo{icell}.Operation=Operation{ivar};
     320        if ~isempty(FieldName{ivar})
     321            CellInfo{icell}.FieldName=FieldName{ivar};
    322322        end
    323323        if CheckSub(ivar)==1
Note: See TracChangeset for help on using the changeset viewer.