1 #ifndef teca_spatial_executive_h
2 #define teca_spatial_executive_h
5 #include "teca_algorithm_executive.h"
6 #include "teca_metadata.h"
42 int initialize(MPI_Comm comm,
const teca_metadata &md)
override;
78 void set_extent(
const std::vector<unsigned long> &ext);
84 void set_bounds(
const std::vector<double> &bounds);
98 this->number_of_temporal_partitions = 0;
99 this->temporal_partition_size = 1;
100 this->index_executive_compatability = 1;
114 { this->minimum_block_size_x = std::max(1ul, val); }
118 { this->minimum_block_size_y = std::max(1ul, val); }
122 { this->minimum_block_size_z = std::max(1ul, val); }
128 std::vector<teca_metadata> requests;
129 std::string index_initializer_key;
130 std::string index_request_key;
133 long number_of_temporal_partitions;
134 long temporal_partition_size;
135 int index_executive_compatability;
139 unsigned long minimum_block_size_x;
140 unsigned long minimum_block_size_y;
141 unsigned long minimum_block_size_z;
142 std::vector<unsigned long> extent;
143 std::vector<double> bounds;
144 std::vector<std::string> arrays;
Base class and default implementation for executives.
Definition: teca_algorithm_executive.h:55
Definition: teca_spatial_executive.h:38
void enable_index_executive_compatibility()
Definition: teca_spatial_executive.h:96
void set_time_step(long s)
Set the time step to process.
void set_first_step(long s)
Set the first index in the series to process.The default is 0.
void set_minimum_block_size_y(unsigned long val)
Sets the minimum block size in the y-direction.
Definition: teca_spatial_executive.h:117
void set_minimum_block_size_x(unsigned long val)
Sets the minimum block size in the x-direction.
Definition: teca_spatial_executive.h:113
void set_partition_z(int val)
A flag that enables/disables partitioning in the z-direction.
Definition: teca_spatial_executive.h:110
void set_extent(unsigned long *ext)
void set_minimum_block_size_z(unsigned long val)
Sets the minimum block size in the z-direction.
Definition: teca_spatial_executive.h:121
void set_temporal_partition_size(long n_steps)
void set_partition_x(int val)
A flag that enables/disables partitioning in the x-direction.
Definition: teca_spatial_executive.h:104
void set_last_step(long s)
void set_number_of_temporal_partitions(long n_partitions)
void set_partition_y(int val)
A flag that enables/disables partitioning in the y-direction.
Definition: teca_spatial_executive.h:107
void set_bounds(double *bounds)
void set_arrays(const std::vector< std::string > &arrays)
p_teca_error_handler error_handler TECA_EXPORT
The global error handler instance.