TECA
The Toolkit for Extreme Climate Analysis
teca_mesh_join.h
1 #ifndef teca_mesh_join_h
2 #define teca_mesh_join_h
3 
4 #include "teca_shared_object.h"
5 #include "teca_algorithm.h"
6 #include "teca_metadata.h"
7 
8 #include <string>
9 #include <vector>
10 
11 TECA_SHARED_OBJECT_FORWARD_DECL(teca_mesh_join)
12 
13 
14 /**
15  * An algorithm that joins two or more mesh data.
16  * It requires that the mesh geometry be identical in all files.
17  */
19 {
20 public:
21  TECA_ALGORITHM_STATIC_NEW(teca_mesh_join)
22  TECA_ALGORITHM_DELETE_COPY_ASSIGN(teca_mesh_join)
23  TECA_ALGORITHM_CLASS_NAME(teca_mesh_join)
24  ~teca_mesh_join();
25 
26  // report/initialize to/from Boost program options
27  // objects.
28  TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
29  TECA_SET_ALGORITHM_PROPERTIES()
30 
31  /** Set the number input connections. The default is 2, this must be called
32  * when more than 2 meshes are to be merged.
33  */
34  void set_number_of_input_connections(unsigned int n)
36 
37 protected:
39 
40 private:
42 
43  teca_metadata get_output_metadata(
44  unsigned int port,
45  const std::vector<teca_metadata> &input_md) override;
46 
47  std::vector<teca_metadata> get_upstream_request(
48  unsigned int port,
49  const std::vector<teca_metadata> &input_md,
50  const teca_metadata &request) override;
51 
52  const_p_teca_dataset execute(
53  unsigned int port,
54  const std::vector<const_p_teca_dataset> &input_data,
55  const teca_metadata &request) override;
56 
57 private:
58 };
59 
60 #endif
The interface to TECA pipeline architecture.
Definition: teca_algorithm.h:244
virtual teca_metadata get_output_metadata(unsigned int port, const std::vector< teca_metadata > &input_md)
void set_number_of_input_connections(unsigned int n)
Definition: teca_mesh_join.h:19
A generic container for meta data in the form of name=value pairs.
Definition: teca_metadata.h:22
p_teca_error_handler error_handler TECA_EXPORT
The global error handler instance.