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/grid_algorithm_generic.cpp

    r2270 r2291  
    1313  : CGridAlgorithm(algo), gridSrc_(gridSrc), gridDst_(gridDst), pos_(pos) 
    1414  { 
    15     computeAlgorithm() ; 
    1615  } 
    1716 
    18   void CGridAlgorithmGeneric::computeAlgorithm(void) 
     17  void CGridAlgorithmGeneric::computeAlgorithm(bool eliminateRedondant) 
    1918  { 
    2019    shared_ptr<CGridLocalElements> gridSrcElements = gridSrc_->getGridLocalElements() ; 
     
    4847 
    4948    gridTransformConnector_ = make_shared<CGridTransformConnector>(srcView->getViews(), remoteViews, comm ) ; 
     49    gridTransformConnector_->computeConnector(eliminateRedondant) ; 
    5050  
    5151  } 
Note: See TracChangeset for help on using the changeset viewer.