Last change
on this file since 670 was
657,
checked in by mhnguyen, 9 years ago
|
Making changes in domain to make sure unstructed grid work with new method of index distribution
+) Change the way define i_index and j_index of a domain
+) Remove some redundant attributes of domain
+) Adjust the way to calculate index distribution on server side
Test
+) Make some minor change to test_unstruct_complete to work with new XIOS
+) On Curie
+) All test pass and correct
|
File size:
1.2 KB
|
Line | |
---|
1 | /*! |
---|
2 | \file domain_algorithm_interpolate_from_file.hpp |
---|
3 | \author Ha NGUYEN |
---|
4 | \since 09 July 2015 |
---|
5 | \date 09 July 2015 |
---|
6 | |
---|
7 | \brief Algorithm for interpolation on a domain. |
---|
8 | */ |
---|
9 | #ifndef __XIOS_DOMAIN_ALGORITHM_INTERPOLATE_FROM_FILE_HPP__ |
---|
10 | #define __XIOS_DOMAIN_ALGORITHM_INTERPOLATE_FROM_FILE_HPP__ |
---|
11 | |
---|
12 | #include "domain_algorithm_transformation.hpp" |
---|
13 | #include "domain.hpp" |
---|
14 | #include "interpolate_from_file_domain.hpp" |
---|
15 | |
---|
16 | namespace xios { |
---|
17 | /*! |
---|
18 | \class CDomainAlgorithmInterpolateFromFile |
---|
19 | Reading interpolation from file then apply on a domain |
---|
20 | */ |
---|
21 | class CDomainAlgorithmInterpolateFromFile : public CDomainAlgorithmTransformation |
---|
22 | { |
---|
23 | public: |
---|
24 | CDomainAlgorithmInterpolateFromFile(CDomain* domainDestination, CDomain* domainSource, CInterpolateFromFileDomain* interpDomain); |
---|
25 | |
---|
26 | virtual ~CDomainAlgorithmInterpolateFromFile() {} |
---|
27 | |
---|
28 | virtual void computeIndexSourceMapping(); |
---|
29 | |
---|
30 | private: |
---|
31 | void readInterpolationInfo(std::string& filename, std::map<int,std::vector<std::pair<int,double> > >& interpMapValue); |
---|
32 | void randomizeInterpolationInfo(std::map<int,std::vector<std::pair<int,double> > >& interpMapValue); |
---|
33 | private: |
---|
34 | CInterpolateFromFileDomain* interpDomain_; |
---|
35 | |
---|
36 | }; |
---|
37 | |
---|
38 | } |
---|
39 | #endif // __XIOS_DOMAIN_ALGORITHM_INTERPOLATE_FROM_FILE_HPP__ |
---|
Note: See
TracBrowser
for help on using the repository browser.