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

Adds a double precision real element to the end of the list. More...

Private Member Functions

subroutine list_add_real (specificlist, real_data)
 Adds an element to the end of the list. More...
 

Detailed Description

Adds a double precision real element to the end of the list.

This has a time complexity of O(1)

Parameters
collectionThe specific list involved
dataDouble precision real data to add

Definition at line 231 of file collections.F90.

Member Function/Subroutine Documentation

◆ list_add_real()

subroutine collections_mod::c_add_real::list_add_real ( type(list_type), intent(inout)  specificlist,
real(kind=default_precision), intent(in)  real_data 
)
private

Adds an element to the end of the list.

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

Parameters
specificlistThe specific list involved
dataDouble precision real data to add

Definition at line 2932 of file collections.F90.

2933  type(list_type), intent(inout) :: specificlist
2934  real(kind=default_precision), intent(in) :: real_data
2935 
2936  class(*), pointer :: generic
2937 
2938  generic=>conv_to_generic(real_data, .true.)
2939  call list_add_generic(specificlist, 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