MONC
Private Member Functions | List of all members
collections_mod::c_put_real Interface Reference

Puts a double precision real key-value pair into the map. More...

Private Member Functions

subroutine map_put_real (specificmap, key, real_data)
 Puts a specific key-value pair into the map. More...
 
subroutine hashmap_put_real (specificmap, key, real_data)
 Puts a specific key-value pair into the hashmap. More...
 

Detailed Description

Puts a double precision real key-value pair into the map.

If the key is not already held in the map then the key-value pair will be added, otherwise the existing key-value pair will be modified to hold this updated value (keys must be unique) This has a time complexity of O(n) due to key look up

Parameters
collectionThe specific map involved
keyThe key to place in the map
valueDouble precision real data value to place in the map

Definition at line 344 of file collections.F90.

Member Function/Subroutine Documentation

◆ hashmap_put_real()

subroutine collections_mod::c_put_real::hashmap_put_real ( type(hashmap_type), intent(inout)  specificmap,
character(len=*), intent(in)  key,
real(kind=default_precision), intent(in)  real_data 
)
private

Puts a specific key-value pair into the hashmap.

If the key is not already held in the hashmap then the key-value pair will be added, otherwise the existing key-value pair will be modified to hold this updated value (keys must be unique). This uses a hashing function for performance Do not call directly from external module, this is called via the appropriate interface

Parameters
specificmapThe specific map involved
keyThe key to place in the map
dataDouble precision real data value to place in the map

Definition at line 1323 of file collections.F90.

1324  type(hashmap_type), intent(inout) :: specificmap
1325  real(kind=default_precision), intent(in) :: real_data
1326  character(len=*), intent(in) :: key
1327 
1328  class(*), pointer :: generic
1329 
1330  generic=>conv_to_generic(real_data, .true.)
1331  call hashmap_put_generic(specificmap, key, generic, .true.)

◆ map_put_real()

subroutine collections_mod::c_put_real::map_put_real ( type(map_type), intent(inout)  specificmap,
character(len=*), intent(in)  key,
real(kind=default_precision), intent(in)  real_data 
)
private

Puts a specific key-value pair into the map.

If the key is not already held in the map then the key-value pair will be added, otherwise the existing key-value pair will be modified to hold this updated value (keys must be unique) Do not call directly from external module, this is called via the appropriate interface

Parameters
specificmapThe specific map involved
keyThe key to place in the map
dataDouble precision real value to place in the map

Definition at line 684 of file collections.F90.

685  type(map_type), intent(inout) :: specificmap
686  real(kind=default_precision), intent(in) :: real_data
687  character(len=*), intent(in) :: key
688 
689  class(*), pointer :: generic
690 
691  generic=>conv_to_generic(real_data, .true.)
692  call map_put_generic(specificmap, key, generic, .true.)

The documentation for this interface was generated from the following file:
datadefn_mod::default_precision
integer, parameter, public default_precision
MPI communication type which we use for the prognostic and calculation data.
Definition: datadefn.F90:17