Ignore:
Timestamp:
09/01/17 13:39:53 (7 years ago)
Author:
mhnguyen
Message:

Fixing bug on mask grid

+) Add mask_0d for scalar grid
+) Transmit grid's attributes (mask) from client and reconstruct them correctly on server
+) Rebuild data in the input of data flow on the server side

Test
+) On Curie
+) Simple test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/grid.hpp

    r1243 r1250  
    9595         void inputField(const CArray<double,n>& field, CArray<double,1>& stored) const; 
    9696         template <int n> 
    97          void outputField(const CArray<double,1>& stored, CArray<double,n>& field) const;       
     97         void outputField(const CArray<double,1>& stored, CArray<double,n>& field) const;   
     98         template <int n> 
     99         void uncompressField(const CArray<double,n>& data, CArray<double,1>& outData) const;  
    98100 
    99101         virtual void parse(xml::CXMLNode& node); 
     
    252254        void storeField_arr(const double* const data, CArray<double, 1>& stored) const; 
    253255        void restoreField_arr(const CArray<double, 1>& stored, double* const data) const; 
     256        void uncompressField_arr(const double* const data, CArray<double, 1>& outData) const; 
    254257 
    255258        void setVirtualDomainGroup(CDomainGroup* newVDomainGroup); 
     
    353356                << "Grid = " << this->GetName()) 
    354357      this->restoreField_arr(stored, field.dataFirst()); 
     358   } 
     359 
     360   /*! 
     361     This function removes the effect of mask on received data on the server. 
     362     This function only serve for the checking purpose. TODO: Something must be done to seperate mask and data_index from each other in received data 
     363     \data data received data with masking effect on the server 
     364     \outData data without masking effect 
     365   */ 
     366   template <int N> 
     367   void CGrid::uncompressField(const CArray<double,N>& data, CArray<double,1>& outData) const 
     368   {       
     369     uncompressField_arr(data.dataFirst(), outData); 
    355370   } 
    356371 
Note: See TracChangeset for help on using the changeset viewer.