Retrieves the double precision real value held at the specific map index or null if index > map elements.
More...
|
real(kind=default_precision) function | map_real_at (specificmap, i) |
| Retrieves the real value held at the specific map index. Converts between precision and int. More...
|
|
integer function | hashmap_real_at (specificmap, i) |
| Retrieves the value held at the specific hashmap index. Converts between precision and from int. Note that this is an expensive operation has it has to potentially process all internal hashed lists so avoid if can. More...
|
|
Retrieves the double precision real value held at the specific map index or null if index > map elements.
This has a time complexity of O(n)
- Parameters
-
collection | The specific map involved |
index | The index to get value from |
- Returns
- Double precision real value or raises an error if none is found
Definition at line 497 of file collections.F90.
◆ hashmap_real_at()
integer function collections_mod::c_real_at::hashmap_real_at |
( |
type(hashmap_type), intent(inout) |
specificmap, |
|
|
integer, intent(in) |
i |
|
) |
| |
|
private |
Retrieves the value held at the specific hashmap index. Converts between precision and from int. Note that this is an expensive operation has it has to potentially process all internal hashed lists so avoid if can.
Do not call directly from external module, this is called via the appropriate interface
- Parameters
-
specificmap | The specific hashmap involved |
i | Index to get value from |
- Returns
- Double precision real value or raises an error if none is found
Definition at line 1484 of file collections.F90.
1484 type(hashmap_type),
intent(inout) :: specificmap
1485 integer,
intent(in) :: i
1486 integer :: hashmap_real_at
1488 class(*),
pointer :: generic
1490 generic=>hashmap_generic_at(specificmap, i)
1491 if (.not.
associated(generic))
call log_log(log_error,
"Can not find real at "//trim(conv_to_string(i)))
1492 select type(vr=>generic)
1493 type is (
real(kind=default_precision))
1496 hashmap_real_at=conv_single_real_to_double(vr)
1498 hashmap_real_at=conv_single_real_to_double(conv_to_real(vr))
◆ map_real_at()
real(kind=default_precision) function collections_mod::c_real_at::map_real_at |
( |
type(map_type), intent(inout) |
specificmap, |
|
|
integer, intent(in) |
i |
|
) |
| |
|
private |
Retrieves the real value held at the specific map index. Converts between precision and int.
Do not call directly from external module, this is called via the appropriate interface
- Parameters
-
specificmap | The specific map involved |
i | Index to get value from |
- Returns
- Double precision real value or raises an error if none is found
Definition at line 842 of file collections.F90.
842 type(map_type),
intent(inout) :: specificmap
843 integer,
intent(in) :: i
844 real(kind=DEFAULT_PRECISION) :: map_real_at
846 class(*),
pointer :: generic
848 generic=>map_generic_at(specificmap, i)
849 if (.not.
associated(generic))
call log_log(log_error,
"Can not find real at "//trim(conv_to_string(i)))
850 select type(vr=>generic)
851 type is (
real(kind=default_precision))
854 map_real_at=conv_single_real_to_double(vr)
856 map_real_at=conv_single_real_to_double(conv_to_real(vr))
The documentation for this interface was generated from the following file:
- /nfs/a277/earlcd/dev/monc/svn-git/monc/model_core/src/utils/collections.F90