combarray Derived Type

type, public :: combarray

Array of particle combinations


Inherited by

type~~combarray~~InheritedByGraph type~combarray combarray type~aggterm aggterm type~aggterm->type~combarray array_comb type~pbe pbe type~pbe->type~aggterm agg

Contents

Source Code


Components

Type Visibility Attributes Name Initial
integer, public, allocatable :: ia(:)

index of particle 'a'

integer, public, allocatable :: ib(:)

index of particle 'b'

real(kind=rk), public, allocatable :: weight(:)

weight of 'a+b' assigned to pivot


Type-Bound Procedures

procedure, public, pass(self) :: alloc => array_alloc

  • private pure subroutine array_alloc(self, n)

    Allocate combarray.

    Arguments

    Type IntentOptional Attributes Name
    class(combarray), intent(inout) :: self

    object

    integer, intent(in) :: n

    array size

procedure, public, pass(self) :: size => array_size

  • private pure function array_size(self) result(res)

    Size of combarray.

    Arguments

    Type IntentOptional Attributes Name
    class(combarray), intent(in) :: self

    object

    Return Value integer

Source Code

   type :: combarray
   !! Array of particle combinations
      integer, allocatable :: ia(:)
         !! index of particle 'a'
      integer, allocatable :: ib(:)
         !! index of particle 'b'
      real(rk), allocatable :: weight(:)
         !! weight of 'a+b' assigned to pivot
   contains
      procedure, pass(self) :: alloc => array_alloc
      procedure, pass(self) :: size => array_size
   end type combarray