Ignore:
Timestamp:
07/05/16 15:59:02 (8 years ago)
Author:
mhnguyen
Message:

Adding a new type of element into grid: Scalar

+) Add a new node Scalar for xml
+) Make some change on writing scalar value
+) Reorganize some codes
+) Remove some redundant codes

Test
+) On Curie
+) All tests pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/distribution_client.hpp

    r861 r887  
    2121class CDomain; 
    2222class CAxis; 
     23class CScalar; 
    2324 
    2425/*! 
     
    6162    void readDistributionInfo(const std::vector<CDomain*>& domList, 
    6263                              const std::vector<CAxis*>& axisList, 
    63                               const CArray<bool,1>& axisDomainOrder); 
     64                              const std::vector<CScalar*>& scalarList, 
     65                              const CArray<int,1>& axisDomainOrder); 
    6466  private: 
    6567    //! Create local index of a domain 
     
    6870    //! Create local index of an axis 
    6971    void createLocalAxisDataIndex(); 
     72 
     73    //! Create local index of a scalar 
     74    void createLocalScalarDataIndex(); 
    7075 
    7176    template<int N> 
     
    8287     * A grid composed of 1 domain and 1 axis has 2 elements */ 
    8388    int numElement_; 
    84     CArray<bool,1> axisDomainOrder_; //!< Order of axis and domain of a grid 
     89    CArray<int,1> axisDomainOrder_; //!< Order of axis and domain of a grid 
    8590 
    8691    std::vector<int> nLocal_; //!< Local size of each dimension (ni, nj, etc, ...) 
     
    95100    std::vector<int> dataDims_; //!< Data_dim, domain can have data_dim == 1 or 2 
    96101    std::vector<int> dataBegin_; //!< Data begin (data_ibegin, data_jbegin, etc) 
    97     std::vector<CArray<int,1>* > dataIndex_; //!< Data index 
    98     std::vector<CArray<int,1>* > infoIndex_; //!< i_index, j_index 
     102    std::vector<CArray<int,1> > dataIndex_; //!< Data index 
     103    std::vector<CArray<int,1> > infoIndex_; //!< i_index, j_index 
    99104 
    100105    std::vector<CArray<bool,1> > domainMasks_; //!< Domain mask 
Note: See TracChangeset for help on using the changeset viewer.