Ignore:
Timestamp:
10/09/17 10:14:24 (7 years ago)
Author:
ymipsl
Message:

Add new transformation : reduce axis_to_axis
This a global reduction implying all process whih own the same source axis global point.

YM

Location:
XIOS/dev/XIOS_DEV_CMIP6/src/node
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/axis.cpp

    r1275 r1301  
    5151     m["inverse_axis"] = TRANS_INVERSE_AXIS; 
    5252     m["reduce_domain"] = TRANS_REDUCE_DOMAIN_TO_AXIS; 
     53     m["reduce_axis"] = TRANS_REDUCE_AXIS_TO_AXIS; 
    5354     m["extract_domain"] = TRANS_EXTRACT_DOMAIN_TO_AXIS; 
    5455     m["temporal_splitting"] = TRANS_TEMPORAL_SPLITTING; 
     
    12731274 
    12741275    // Resize index to its real size 
    1275     index.resizeAndPreserve(nbIndexGlob); 
     1276    if (nbIndexGlob==0) index.resize(nbIndexGlob) ; 
     1277    else index.resizeAndPreserve(nbIndexGlob); 
    12761278 
    12771279    int nbData = nbIndexGlob; 
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/node_enum.hpp

    r1275 r1301  
    2929         eReduceAxisToScalar, 
    3030         eReduceDomainToAxis, 
     31         eReduceAxisToAxis, 
    3132         eExtractDomainToAxis, 
    3233         eComputeConnectivityDomain, 
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/node_type.hpp

    r1275 r1301  
    1919#include "reduce_axis_to_scalar.hpp" 
    2020#include "reduce_domain_to_axis.hpp" 
     21#include "reduce_axis_to_axis.hpp" 
    2122#include "extract_domain_to_axis.hpp" 
    2223#include "compute_connectivity_domain.hpp" 
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/transformation_enum.hpp

    r1275 r1301  
    2121        TRANS_REDUCE_DOMAIN_TO_SCALAR = 12, 
    2222        TRANS_TEMPORAL_SPLITTING = 13, 
     23        TRANS_REDUCE_AXIS_TO_AXIS = 14, 
    2324      } ETranformationType; 
    2425 
Note: See TracChangeset for help on using the changeset viewer.