Ignore:
Timestamp:
01/10/17 14:36:29 (7 years ago)
Author:
oabramkina
Message:

Intermeadiate version for merging with new server functionalities.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/transformation/domain_algorithm_interpolate.hpp

    r933 r1021  
    1212#include "domain_algorithm_transformation.hpp" 
    1313#include "transformation.hpp" 
     14#include "nc4_data_output.hpp" 
    1415 
    1516namespace xios { 
     
    1718class CDomain; 
    1819class CInterpolateDomain; 
     20 
    1921 
    2022/*! 
     
    3537private: 
    3638  void readInterpolationInfo(std::string& filename, std::map<int,std::vector<std::pair<int,double> > >& interpMapValue); 
     39  void writeInterpolationInfo(std::string& filename, std::map<int,std::vector<std::pair<int,double> > >& interpMapValue); 
    3740  void processPole(std::map<int,std::vector<std::pair<int,double> > >& interMapValuePole, 
    3841                   int nbGlobalPointOnPole); 
    3942  void computeRemap(); 
    4043  void readRemapInfo(); 
     44  void writeRemapInfo(std::map<int,std::vector<std::pair<int,double> > >&); 
    4145  void exchangeRemapInfo(std::map<int,std::vector<std::pair<int,double> > >& interpMapValue); 
     46 
    4247private: 
    4348  CInterpolateDomain* interpDomain_; 
     49  bool writeToFile_; 
     50  bool readFromFile_; 
     51  StdString fileToReadWrite_; 
     52 
     53  // class WriteNetCdf; 
     54  class WriteNetCdf : public CNc4DataOutput 
     55  { 
     56  public: 
     57    WriteNetCdf(const StdString& filename, const MPI_Comm comm); 
     58    int addDimensionWrite(const StdString& name, const StdSize size = UNLIMITED_DIM); 
     59    int addVariableWrite(const StdString& name, nc_type type, 
     60                         const std::vector<StdString>& dim); 
     61    void writeDataIndex(const CArray<int,1>& data, const StdString& name, 
     62                        bool collective, StdSize record, 
     63                        const std::vector<StdSize>* start = NULL, 
     64                        const std::vector<StdSize>* count = NULL); 
     65    void writeDataIndex(const CArray<double,1>& data, const StdString& name, 
     66                        bool collective, StdSize record, 
     67                        const std::vector<StdSize>* start = NULL, 
     68                        const std::vector<StdSize>* count = NULL); 
     69  }; 
     70 
    4471 
    4572private: 
Note: See TracChangeset for help on using the changeset viewer.