Ignore:
Timestamp:
02/01/22 15:28:48 (2 years ago)
Author:
ymipsl
Message:

Improve reduction transformation

  • make the difference between reduction over geometry or reduction between process.
  • geometrical reduction :

domain -> axis
axis -> scalar
domain -> scalar

  • reduction across processes for redondant geometrical cell :

axis -> axis
scalar -> scalar

Reduction can be local (only for the geometrical cell owned by current process) or global, using the "local" attribute (bool) over the reduction.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/Functions/reduction_types.hpp

    r1999 r2291  
    1313{ 
    1414 
    15   typedef enum reduction_algurithm_type 
     15  typedef enum reduction_algorithm_type 
    1616  { 
    17     TRANS_REDUCE_SUM = 0, 
    18     TRANS_REDUCE_MIN = 1, 
    19     TRANS_REDUCE_MAX = 2, 
    20     TRANS_REDUCE_EXTRACT = 3, 
    21     TRANS_REDUCE_AVERAGE = 4 
     17    TRANS_REDUCE_NONE = 0,  
     18    TRANS_REDUCE_SUM = 1, 
     19    TRANS_REDUCE_MIN = 2, 
     20    TRANS_REDUCE_MAX = 3, 
     21    TRANS_REDUCE_EXTRACT = 4, 
     22    TRANS_REDUCE_AVERAGE = 5 
    2223  } EReductionType; 
    2324 
    2425  enum class EReduction 
    2526  { 
    26     sum, min, max, extract, average 
     27    none, sum, min, max, extract, average 
    2728  } ; 
    2829} 
Note: See TracChangeset for help on using the changeset viewer.