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/distribution/grid_transform_connector.cpp

    r2267 r2291  
    44#include "gatherer_connector.hpp" 
    55#include "grid_remote_connector.hpp" 
     6#include "grid_redondant_remote_connector.hpp" 
    67 
    78 
    89namespace xios 
    910{ 
    10   void CGridTransformConnector::computeConnector(void) 
     11  void CGridTransformConnector::computeConnector(bool eliminateRedundant) 
    1112  { 
    1213    int commSize ; 
     
    1718 
    1819    auto remoteConnector = make_shared<CGridRemoteConnector>(srcViews_, remoteViews_, localComm_, commSize) ;   
    19     remoteConnector->computeConnector() ; 
     20    remoteConnector->computeConnector(eliminateRedundant) ;  
    2021     
    2122    vector<shared_ptr<CDistributedElement>> sendElements(nElements) ; 
Note: See TracChangeset for help on using the changeset viewer.