|
real(kind=default_precision) function | iterator_get_next_real (iterator) |
| Returns the next real (double precision) referenced by the iterator and advanced it,
or an error if it has reached the end of iteration. More...
|
|
Definition at line 598 of file collections.F90.
◆ iterator_get_next_real()
real(kind=default_precision) function collections_mod::c_next_real::iterator_get_next_real |
( |
type(iterator_type), intent(inout) |
iterator | ) |
|
|
private |
Returns the next real (double precision) referenced by the iterator and advanced it,
or an error if it has reached the end of iteration.
- Parameters
-
iterator | The iterator of which to access and advance the next element |
- Returns
- The next double precision real, conversion between single and integers is done automatically
Definition at line 3231 of file collections.F90.
3232 type(iterator_type),
intent(inout) :: iterator
3234 class(*),
pointer :: generic
3236 generic=>iterator_get_next_generic(iterator)
3237 if (
associated(generic))
then
3238 select type(vr=>generic)
3240 iterator_get_next_real=vr
3242 iterator_get_next_real=conv_single_real_to_double(vr)
3244 iterator_get_next_real=conv_single_real_to_double(conv_to_real(vr))
3247 call log_log(
log_error,
"Can not get next real in iterator as iterator has reached end of collection")
The documentation for this interface was generated from the following file:
subroutine, public log_log(level, message, str)
Logs a message at the specified level. If the level is above the current level then the message is ig...