Go to the documentation of this file.
24 source_monc, operator_result_values)
27 type(
map_type),
intent(inout) :: action_attributes
28 integer,
intent(in) :: source_monc_location, source_monc
29 real(kind=
default_precision),
dimension(:),
allocatable,
intent(inout) :: operator_result_values
31 character(len=STRING_LENGTH) :: field_to_reduce, reduction_operator
34 allocate(operator_result_values(1))
39 operator_result_values=
do_local_reduction(field_local_values%values, reduction_operator)
48 character(len=STRING_LENGTH),
intent(in) :: reduction_operator
50 if (reduction_operator .eq.
"max")
then
52 else if (reduction_operator .eq.
"min")
then
54 else if (reduction_operator .eq.
"sum")
then
56 else if (reduction_operator .eq.
"mean")
then
65 type(
map_type),
intent(inout) :: action_attributes
67 character(len=STRING_LENGTH) :: field_to_reduce
Map data structure that holds string (length 20 maximum) key value pairs.
Contains functionality for managing and extracting data from the raw data dumps that the IO server re...
Collection data structures.
A hashmap structure, the same as a map but uses hashing for greatly improved performance when storing...
Performs a local reduction, reducing a local array into a single scalar value.
Overall IO configuration.
real(kind=default_precision) function do_local_reduction(data, reduction_operator)
Does the actual local reduction, translating the array into a vector based upon the operator.
Contains common definitions for the data and datatypes used by MONC.
integer, parameter, public string_length
Default length of strings.
subroutine, public perform_localreduce_operator(io_configuration, field_values, action_attributes, source_monc_location, source_monc, operator_result_values)
Executes this local reduction operator.
List data structure which implements a doubly linked list. This list will preserve its order.
Adds a string to the end of the list.
type(list_type) function, public localreduce_operator_get_required_fields(action_attributes)
Retrieves the list of fields needed by this operator for a specific configuration.
Parses the XML configuration file to produce the io configuration description which contains the data...
character(len=string_length) function, public get_action_attribute_string(action_attributes, field_name)
Retrieves the name of a field from the attributes specified in the configuration.
integer, parameter, public default_precision
MPI communication type which we use for the prognostic and calculation data.