seams_neighbours Derived Type

type, public :: seams_neighbours

Cutoff or neighbour graph. offsets and columns allocate copies.


Finalization Procedures

final :: neighbour_final

  • private subroutine neighbour_final(self)

    Release this owner’s reference to the neighbour list.

    Arguments

    Type IntentOptional Attributes Name
    type(seams_neighbours), intent(inout) :: self

Type-Bound Procedures

procedure, public :: count => neighbour_count

  • interface

    private module function neighbour_count(self) result(n)

    Arguments

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

    Return Value integer(kind=seams_int)

procedure, public :: offsets => neighbour_offsets

  • interface

    private module subroutine neighbour_offsets(self, offsets, stat, errmsg)

    Arguments

    Type IntentOptional Attributes Name
    class(seams_neighbours), intent(in) :: self
    integer(kind=seams_int), intent(out), allocatable :: offsets(:)
    integer(kind=seams_int), intent(out), optional :: stat
    character(len=:), intent(out), optional, allocatable :: errmsg

procedure, public :: columns => neighbour_columns

  • interface

    private module subroutine neighbour_columns(self, columns, stat, errmsg)

    Arguments

    Type IntentOptional Attributes Name
    class(seams_neighbours), intent(in) :: self
    integer(kind=seams_int), intent(out), allocatable :: columns(:)
    integer(kind=seams_int), intent(out), optional :: stat
    character(len=:), intent(out), optional, allocatable :: errmsg

procedure, public :: close => neighbour_close

  • private subroutine neighbour_close(self)

    Release this owner’s reference to the neighbour list.

    Arguments

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

Source Code

  type, public :: seams_neighbours
    private
    type(handle_box), pointer :: box => null()
  contains
    procedure, public :: count => neighbour_count
    procedure, public :: offsets => neighbour_offsets
    procedure, public :: columns => neighbour_columns
    procedure, public :: close => neighbour_close
    final :: neighbour_final
  end type seams_neighbours