type, public :: seams_neighbours
Cutoff or neighbour graph. offsets and columns allocate copies.
Type-Bound Procedures
-
interface
private module function neighbour_count(self) result(n)
Arguments
Return Value
integer(kind=seams_int)
-
interface
private module subroutine neighbour_offsets(self, offsets, stat, errmsg)
Arguments
| Type |
Intent | Optional | 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 |
|
-
interface
private module subroutine neighbour_columns(self, columns, stat, errmsg)
Arguments
| Type |
Intent | Optional | 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 |
|
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