source: XIOS/trunk/src/transformation/domain_algorithm_interpolate.hpp @ 709

Last change on this file since 709 was 709, checked in by mhnguyen, 6 years ago

Correcting a bug in interpolation domain

+) Replace shared send buffer by seperate buffer for each proc
+) Remove some redundant codes

Test
+) On Curie
+) test_client, test_complete and test_remap pass

File size: 1.1 KB
Line 
1/*!
2   \file domain_algorithm_interpolate_from_file.hpp
3   \author Ha NGUYEN
4   \since 09 July 2015
5   \date 09 Sep 2015
6
7   \brief Algorithm for interpolation on a domain.
8 */
9#ifndef __XIOS_DOMAIN_ALGORITHM_INTERPOLATE_HPP__
10#define __XIOS_DOMAIN_ALGORITHM_INTERPOLATE_HPP__
11
12#include "domain_algorithm_transformation.hpp"
13#include "domain.hpp"
14#include "interpolate_domain.hpp"
15
16namespace xios {
17/*!
18  \class CDomainAlgorithmInterpolate
19  Reading interpolation from file then apply on a domain
20*/
21class CDomainAlgorithmInterpolate : public CDomainAlgorithmTransformation
22{
23public:
24  CDomainAlgorithmInterpolate(CDomain* domainDestination, CDomain* domainSource, CInterpolateDomain* interpDomain);
25
26  virtual ~CDomainAlgorithmInterpolate() {}
27
28  virtual void computeIndexSourceMapping();
29
30private:
31  void readInterpolationInfo(std::string& filename, std::map<int,std::vector<std::pair<int,double> > >& interpMapValue);
32  void computeRemap();
33  void readRemapInfo();
34  void exchangeRemapInfo(const std::map<int,std::vector<std::pair<int,double> > >& interpMapValue);
35private:
36  CInterpolateDomain* interpDomain_;
37
38};
39
40}
41#endif // __XIOS_DOMAIN_ALGORITHM_INTERPOLATE_HPP__
Note: See TracBrowser for help on using the repository browser.