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)
47 real(kind=DEFAULT_PRECISION),
dimension(:),
intent(in) :: data
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 64 type(
list_type) function localreduce_operator_get_required_fields(action_attributes)
65 type(
map_type),
intent(inout) :: action_attributes
67 character(len=STRING_LENGTH) :: field_to_reduce
70 call c_add_string(localreduce_operator_get_required_fields, field_to_reduce)
Overall IO configuration.
Contains functionality for managing and extracting data from the raw data dumps that the IO server re...
integer, parameter, public default_precision
MPI communication type which we use for the prognostic and calculation data.
Contains common definitions for the data and datatypes used by MONC.
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.
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.
Map data structure that holds string (length 20 maximum) key value pairs.
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...
Collection data structures.
integer, parameter, public string_length
Default length of strings.
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. ...
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.
Parses the XML configuration file to produce the io configuration description which contains the data...