source: XIOS/trunk/src/transformation/domain_algorithm_generate_rectilinear.hpp @ 1952

Last change on this file since 1952 was 1704, checked in by yushan, 5 years ago

Introducing the new graph functionality. Attribute build_workflow_graph=.TRUE. is used in the field definition section in the xml file to enable the workflow graph of the field and other fields referecing to it. A more detailed document will be available soon on the graph fuctionality.

File size: 1.6 KB
RevLine 
[687]1/*!
2   \file domain_algorithm_generate_rectilinear.hpp
3   \author Ha NGUYEN
4   \since 31 Aug 2015
5   \date 01 Sep 2015
6
7   \brief Algorithm for automatic generation of rectilinear domain.
8 */
9#ifndef __XIOS_DOMAIN_ALGORITHM_GENERATE_RECTILINEAR_HPP__
10#define __XIOS_DOMAIN_ALGORITHM_GENERATE_RECTILINEAR_HPP__
11
12#include "domain_algorithm_transformation.hpp"
13
14namespace xios {
15
16class CGrid;
17class CDomain;
18class CGenerateRectilinearDomain;
19
20/*!
21  \class CDomainAlgorithmGenerateRectilinear
[1410]22  Generate a rectilinear or CURVILINEAR domain and fill in necessary its attributes automatically
23  A new rectilinear (or CURVILINEAR) domain will also be distributed automatically among the processes.
[687]24  The number of processes is deduced from the distribution of the grid source.
25*/
26class CDomainAlgorithmGenerateRectilinear : public CDomainAlgorithmTransformation
27{
28public:
[775]29  CDomainAlgorithmGenerateRectilinear(CDomain* domainDestination, CDomain* domainSource,
30                                      CGrid* gridDest, CGrid* gridSource,
31                                      CGenerateRectilinearDomain* zoomDomain);
[687]32
33  virtual ~CDomainAlgorithmGenerateRectilinear() {}
34
[1704]35  virtual StdString getName() {return "Domain Trans. Filter \\n Generate Rectilinear";}
36
[827]37protected:
38  void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs);
[687]39
40private:
[775]41  void computeDistributionGridSource(CGrid* gridSrc);
42  void computeDistributionGridDestination(CGrid* gridDest);
[687]43  void fillInAttributesDomainDestination();
44
45private:
46  int nbDomainDistributedPart_; //! Number of local domain.
47
48};
49
50}
51#endif // __XIOS_DOMAIN_ALGORITHM_GENERATE_RECTILINEAR_HPP__
Note: See TracBrowser for help on using the repository browser.