1 #ifndef teca_space_time_executive_h
2 #define teca_space_time_executive_h
5 #include "teca_algorithm_executive.h"
6 #include "teca_metadata.h"
42 int initialize(MPI_Comm comm,
const teca_metadata &md)
override;
86 void set_extent(
const std::vector<unsigned long> &ext);
92 void set_bounds(
const std::vector<double> &bounds);
106 this->number_of_temporal_partitions = 0;
107 this->temporal_partition_size = 1;
108 this->index_executive_compatability = 1;
122 { this->minimum_block_size_x = std::max(1ul, val); }
126 { this->minimum_block_size_y = std::max(1ul, val); }
130 { this->minimum_block_size_z = std::max(1ul, val); }
136 std::vector<teca_metadata> requests;
137 std::string index_initializer_key;
138 std::string index_request_key;
141 long number_of_spatial_partitions;
142 long number_of_temporal_partitions;
143 long temporal_partition_size;
144 int index_executive_compatability;
148 unsigned long minimum_block_size_x;
149 unsigned long minimum_block_size_y;
150 unsigned long minimum_block_size_z;
151 std::vector<unsigned long> extent;
152 std::vector<double> bounds;
153 std::vector<std::string> arrays;
Base class and default implementation for executives.
Definition: teca_algorithm_executive.h:55
Definition: teca_space_time_executive.h:38
void set_partition_z(int val)
A flag that enables/disables partitioning in the z-direction.
Definition: teca_space_time_executive.h:118
void set_extent(unsigned long *ext)
void set_first_step(long s)
Set the first index in the series to process.The default is 0.
void set_temporal_partition_size(long n_steps)
void set_minimum_block_size_z(unsigned long val)
Sets the minimum block size in the z-direction.
Definition: teca_space_time_executive.h:129
void set_arrays(const std::vector< std::string > &arrays)
void set_minimum_block_size_y(unsigned long val)
Sets the minimum block size in the y-direction.
Definition: teca_space_time_executive.h:125
void set_time_step(long s)
Set the time step to process.
void set_partition_x(int val)
A flag that enables/disables partitioning in the x-direction.
Definition: teca_space_time_executive.h:112
void set_last_step(long s)
void set_number_of_spatial_partitions(long n_partitions)
void enable_index_executive_compatibility()
Definition: teca_space_time_executive.h:104
void set_partition_y(int val)
A flag that enables/disables partitioning in the y-direction.
Definition: teca_space_time_executive.h:115
void set_number_of_temporal_partitions(long n_partitions)
void set_minimum_block_size_x(unsigned long val)
Sets the minimum block size in the x-direction.
Definition: teca_space_time_executive.h:121
void set_bounds(double *bounds)
p_teca_error_handler error_handler TECA_EXPORT
The global error handler instance.