Ignore:
Timestamp:
01/23/19 10:31:44 (5 years ago)
Author:
yushan
Message:

dev on ADA. add flag switch _usingEP/_usingMPI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/distribution_client.hpp

    r1460 r1642  
    3333 
    3434  public: 
    35     /** Default constructor */         
     35    /** Default constructor */ 
    3636    CDistributionClient(int rank, CGrid* grid); 
    3737 
     
    4444    GlobalLocalDataMap& getGlobalLocalDataSendToServer(); 
    4545    GlobalLocalDataMap& getGlobalDataIndexOnClient(); 
    46     const std::vector<int>& getLocalMaskIndexOnClient(); 
     46    const std::vector<bool>& getLocalMaskIndexOnClient(); 
    4747    const std::vector<int>& getLocalMaskedDataIndexOnClient(); 
    4848 
     
    8383    GlobalLocalDataMap globalLocalDataSendToServerMap_; 
    8484    GlobalLocalDataMap globalDataIndex_; 
     85 
     86    /*! Array holding masked data indexes. 
     87     * It includes: 
     88     *  masking on data (data_i/j_index or data_ni/nj and data_ibegin) 
     89     *  masking on grid elements (domains, axes or scalars) 
     90     * It DOES NOT include grid mask. 
     91     * The array size defines the data size entering the workflow. It is used by source filter of client or server1. 
     92    */ 
    8593    std::vector<int> localDataIndex_; 
    86     std::vector<int> localMaskIndex_; 
     94 
     95    /*! Array holding grid mask. If grid mask is not defined, its size is zero. 
     96     * It is used by source filter of client for replacing unmasked data by NaN. 
     97    */ 
     98    std::vector<bool> localMaskIndex_; 
     99 
    87100    std::vector<int> localMaskedDataIndex_; 
    88101 
     
    97110    std::vector<int> nBeginLocal_;//!< Begin index of each dimension (e.x: for domain, it's always 0, for axis, it's zoom_begin, ...) 
    98111    std::vector<int> nBeginGlobal_; //!< Begin index of each dimension (e.x: ibegin, jbegin, ...) 
    99     std::vector<int> nZoomBegin_; //!< Begin index of zoom of each dimension 
    100     std::vector<int> nZoomEnd_; //!< End index of zoom of each dimension 
    101112 
    102113    // Data_n_index of domain or axis (For now, axis uses its size as data_n_index 
     
    107118    std::vector<CArray<int,1> > infoIndex_; //!< i_index, j_index 
    108119 
    109     std::vector<CArray<bool,1> > domainMasks_; //!< Domain mask 
    110     std::vector<CArray<bool,1> > axisMasks_; //!< Axis mask 
    111  
    112120    std::vector<int> indexMap_; //!< Mapping element index to dimension index 
    113121    std::vector<CArray<int,1> > elementLocalIndex_;  //!< Local index of each element 
    114122    std::vector<CArray<size_t,1> > elementGlobalIndex_; //!< Global index of each element 
    115123    std::vector<CArray<bool,1> > elementIndexData_; //!< // The correct index of a domain has true value, the ghost one has false value 
    116     std::vector<CArray<bool,1> > elementZoomMask_; //!< Only zoomed region are true 
    117124    std::vector<size_t> elementNLocal_; 
    118125    std::vector<size_t> elementNGlobal_; 
Note: See TracChangeset for help on using the changeset viewer.