Ignore:
Timestamp:
Apr 23, 2021, 4:59:15 PM (3 years ago)
Author:
sommeria
Message:

turb_stat updated for multi slices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/proj_field.m

    r1098 r1100  
    11251125icell_grid=[];% field cell index which defines the grid
    11261126icell_scattered=[];% field cell index which defines fields with scattered coordinates
     1127for icell=1:numel(CellInfo)
     1128    if strcmp(ObjectData.ProjMode,'interp_lin')&& ~strcmp(ProjMode{icell},'interp_tps')
     1129        errormsg='ProjMode interp_tps needed ';
     1130        return
     1131    end
     1132end
    11271133if strcmp(ObjectData.ProjMode,'projection')
    11281134    %% case of a grid requested by the input field
     
    11301136        if isfield(CellInfo{icell},'ProjModeRequest')
    11311137            switch CellInfo{icell}.ProjModeRequest
    1132 %                 case 'interp_lin'
    1133 %                     ProjMode{icell}='interp_lin';
     1138                case 'interp_lin'
     1139                    ProjMode{icell}='interp_lin';
    11341140                case 'interp_tps'
    11351141                    ProjMode{icell}='interp_tps';
     
    12361242        continue % only cells represnting 2D or 3D fields are involved
    12371243    end
     1244%     if isfield(CellInfo{icell},'ProjModeRequest') && ~strcmp(CellInfo{icell}.ProjModeRequest,ProjMode{icell})
     1245%         msgbox_uvmat('ERROR',['ProjMode ' CellInfo{icell}.ProjModeRequest ' needed'])
     1246%         return
     1247%     end
    12381248    VarIndex= CellInfo{icell}.VarIndex;%  indices of the selected variables in the list FieldData.ListVarName
    12391249    %dimensions
     
    12471257    VarAttribute={};% initiate coresponding list of var attributes  for cell # icell
    12481258    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1249     check3D=(numel(CellInfo{icell}.CoordIndex)==3);
    1250     switch CellInfo{icell}.CoordType  
     1259    check3D=(numel(CellInfo{icell}.CoordIndex)==3); 
     1260    switch CellInfo{icell}.CoordType
    12511261        case 'scattered'
    12521262            %% case of input fields with unstructured coordinates (applies for projMode ='projection' or 'interp_lin')
Note: See TracChangeset for help on using the changeset viewer.