Changeset 516 for trunk/src/calc_tps.m


Ignore:
Timestamp:
Aug 16, 2012, 8:47:11 AM (9 years ago)
Author:
sommeria
Message:

various bug corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/calc_tps.m

    r515 r516  
    1515        if ~isempty(VarType.vector_x)&&~isempty(VarType.vector_y)
    1616            Attr=DataIn.VarAttribute{VarType.vector_x};
    17             if ~isfield(Attr,'VarIndex_tps')&& (checkall || (isfield(Attr,'FieldRequest')&&strcmp(Attr.FieldRequest,'derivatives')))               
     17            if ~isfield(Attr,'VarIndex_tps')&& (checkall || (isfield(Attr,'FieldRequest')&&strcmp(Attr.FieldRequest,'interp_tps')))               
    1818                U=DataIn.(DataIn.ListVarName{VarType.vector_x});
    1919                V=DataIn.(DataIn.ListVarName{VarType.vector_y});
     
    5252        DataOut.VarAttribute{nbvar+5}=DataIn.VarAttribute{VarType.vector_y};%reproduce attributes of velocity
    5353         DataOut.VarAttribute{nbvar+5}.Role='vector_y_tps';
    54 %          if isfield(DataOut.VarAttribute{VarType.vector_x},'FieldRequest')
    55 %              DataOut.VarAttribute{VarType.vector_x}=rmfield(DataOut.VarAttribute{VarType.vector_x},'FieldRequest');
    56 %          end
    57 %          if isfield(DataOut.VarAttribute{VarType.vector_x},'Operation')
    58 %              DataOut.VarAttribute{VarType.vector_x}=rmfield(DataOut.VarAttribute{VarType.vector_x},'Operation');
    59 %          end
    60         if isfield(DataOut,'ListDimName')%cleaning'FieldRequest'
     54        if isfield(DataOut,'ListDimName')%cleaning'
    6155            DataOut=rmfield(DataOut,'ListDimName');
    6256        end
Note: See TracChangeset for help on using the changeset viewer.