Ignore:
Timestamp:
08/25/15 16:52:45 (9 years ago)
Author:
rlacroix
Message:

Add support for indexed output.

If the new field attribute "indexed_output" is set to true and a mask is defined (either at grid, domain or axis level), the indexed data will be outputed instead of the full data with missing values.

See http://cfconventions.org/Data/cf-conventions/cf-conventions-1.5/build/cf-conventions.html#compression-by-gathering for more information.

File:
1 edited

Legend:

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

    r668 r676  
    4646    bool isDataDistributed() { return isDataDistributed_; } 
    4747 
     48    static int getDomainIndex(const int& dataIIndex, const int& dataJIndex, 
     49                                     const int& dataIBegin, const int& dataJBegin, 
     50                                     const int& dataDim, const int& ni, int& j); 
     51    static int getAxisIndex(const int& dataIndex, const int& dataBegin, const int& ni); 
     52 
    4853  protected: 
    4954    void createGlobalIndex(); 
     
    6166    //! Create local index of an axis 
    6267    void createLocalAxisDataIndex(); 
    63  
    64     inline int getDomainIndex(const int& dataIIndex, const int& dataJIndex, 
    65                               const int& dataIBegin, const int& dataJBegin, 
    66                               const int& dataDim, const int& ni, int& j); 
    67     inline int getAxisIndex(const int& dataIndex, const int& dataBegin, const int& ni); 
    6868 
    6969    template<int N> 
Note: See TracChangeset for help on using the changeset viewer.