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

Inserts a double precision real element into the list or places at the end if the index > list size. More...

Private Member Functions

subroutine list_insert_real (specificlist, real_data, i)
 Inserts an element into the list or places at the end if the index > list size. More...
 

Detailed Description

Inserts a double precision real element into the list or places at the end if the index > list size.

This has a time complexity of O(n)

Parameters
collectionThe specific list involved
dataDouble precision real data to insert
indexThe list index to insert to

Definition at line 281 of file collections.F90.

Member Function/Subroutine Documentation

◆ list_insert_real()

subroutine collections_mod::c_insert_real::list_insert_real ( type(list_type), intent(inout)  specificlist,
real(kind=default_precision), intent(in)  real_data,
integer, intent(in)  i 
)
private

Inserts an element into the list or places at the end if the index > list size.

Do not call directly from external module, this is called via the appropriate interface

Parameters
specificlistThe specific list involved
dataDouble precision real data to insert
iThe list index to insert to

Definition at line 2816 of file collections.F90.

2816  type(list_type), intent(inout) :: specificlist
2817  integer, intent(in) :: i
2818  real(kind=DEFAULT_PRECISION), intent(in) :: real_data
2819 
2820  class(*), pointer :: generic
2821 
2822  generic=>conv_to_generic(real_data, .true.)
2823  call list_insert_generic(specificlist, generic, i, .true.)

The documentation for this interface was generated from the following file: