- Timestamp:
- 02/01/22 15:28:48 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/grid_transform_connector.hpp
r2267 r2291 8 8 #include "grid_scatterer_connector.hpp" 9 9 #include "grid_gatherer_connector.hpp" 10 #include "reduction_types.hpp" 10 11 #include "mpi.hpp" 11 12 … … 20 21 CGridTransformConnector(vector<shared_ptr<CLocalView>> srcViews, vector<shared_ptr<CLocalView>> remoteViews, MPI_Comm localComm) 21 22 : srcViews_(srcViews), remoteViews_(remoteViews), localComm_(localComm) 22 { computeConnector();}23 { } 23 24 24 void computeConnector( void) ;25 void computeConnector(bool eliminateRedundant=true) ; 25 26 protected: 26 27 MPI_Comm localComm_ ; … … 36 37 public: 37 38 template<typename T> 38 void transfer(const CArray<T,1>& dataIn, CArray<T,1>& dataOut )39 void transfer(const CArray<T,1>& dataIn, CArray<T,1>& dataOut, EReduction op = EReduction::none) 39 40 { 40 41 map<int,CArray<T,1>> tmpArrayIn ; … … 62 63 63 64 const double nanValue = std::numeric_limits<double>::quiet_NaN(); 64 gridGathererConnector_->transfer(tmpArrayOut, dataOut, nanValue) ; 65 66 if (op == EReduction::none) gridGathererConnector_->transfer(tmpArrayOut, dataOut, nanValue) ; 67 else gridGathererConnector_->transfer(tmpArrayOut, dataOut, op) ; 65 68 } 66 69
Note: See TracChangeset
for help on using the changeset viewer.