type, public :: seams_cages
Hexagonal and double-diamond membership.
Type-Bound Procedures
-
interface
private module subroutine cage_counts(self, n_hex, n_cubic, n_water, n_both, stat, errmsg)
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
class(seams_cages),
|
intent(in) |
|
|
:: |
self |
|
|
integer(kind=seams_int),
|
intent(out) |
|
|
:: |
n_hex |
|
|
integer(kind=seams_int),
|
intent(out) |
|
|
:: |
n_cubic |
|
|
integer(kind=seams_int),
|
intent(out) |
|
|
:: |
n_water |
|
|
integer(kind=seams_int),
|
intent(out) |
|
|
:: |
n_both |
|
|
integer(kind=seams_int),
|
intent(out), |
optional |
|
:: |
stat |
|
|
character(len=:),
|
intent(out), |
optional, |
allocatable
|
:: |
errmsg |
|
-
interface
private module subroutine cage_labels(self, labels, stat, errmsg)
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
class(seams_cages),
|
intent(in) |
|
|
:: |
self |
|
|
integer(kind=seams_int),
|
intent(out), |
|
allocatable
|
:: |
labels(:) |
|
|
integer(kind=seams_int),
|
intent(out), |
optional |
|
:: |
stat |
|
|
character(len=:),
|
intent(out), |
optional, |
allocatable
|
:: |
errmsg |
|
Source Code
type, public :: seams_cages
private
type(handle_box), pointer :: box => null()
integer(seams_int) :: natoms = 0_seams_int
contains
procedure, public :: counts => cage_counts
procedure, public :: labels => cage_labels
procedure, public :: close => cage_close
final :: cage_final
end type seams_cages