16 source_monc, operator_result_values)
19 type(
map_type),
intent(inout) :: action_attributes
20 integer,
intent(in) :: source_monc_location, source_monc
21 real(kind=DEFAULT_PRECISION),
dimension(:),
allocatable,
intent(inout) :: operator_result_values
23 character(len=STRING_LENGTH) :: location_local, val, val_local
24 type(
data_values_type),
pointer :: val_local_values, val_values, location_local_values
33 allocate(operator_result_values(
size(location_local_values%values)))
34 do i=1,
size(val_local_values%values)
35 if (val_local_values%values(i) .eq. val_values%values(i))
then 36 operator_result_values(i)=location_local_values%values(i)
38 operator_result_values(i)=-1.0_default_precision
43 type(
list_type) function reductionlocation_operator_get_required_fields(action_attributes)
44 type(
map_type),
intent(inout) :: action_attributes
46 character(len=STRING_LENGTH) :: location_local, val, val_local
50 call c_add_string(reductionlocation_operator_get_required_fields, location_local)
51 call c_add_string(reductionlocation_operator_get_required_fields, val)
52 call c_add_string(reductionlocation_operator_get_required_fields, val_local)
56 character(len=*),
intent(in) :: field_str
57 character(len=*),
intent(out) :: location_local, val, val_local
60 character(len=STRING_LENGTH) :: artefacts(3)
61 integer :: i, field_length, start_point, index_loc
63 field_length=len(trim(field_str))
70 artefacts(index_loc)=trim(adjustl(field_str(start_point: i-1)))
75 if (start_point .lt. i) artefacts(index_loc)=trim(adjustl(field_str(start_point: i-1)))
76 location_local=artefacts(1)
78 val_local=artefacts(3)
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...
subroutine extract_tripplet_variables(field_str, location_local, val, val_local)
Map data structure that holds string (length 20 maximum) key value pairs.
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. ...
List data structure which implements a doubly linked list. This list will preserve its order...
subroutine, public perform_reductionlocation_operator(io_configuration, field_values, action_attributes, source_monc_location, source_monc, operator_result_values)
Adds a string to the end of the list.
type(list_type) function, public reductionlocation_operator_get_required_fields(action_attributes)
Parses the XML configuration file to produce the io configuration description which contains the data...