Type-Bound Procedures
procedure, private, :: allocate_neighbors
-
private subroutine allocate_neighbors(this, n_neighbors)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
integer,
|
intent(in) |
|
|
:: |
n_neighbors |
|
procedure, private, :: deallocate_neighbors
-
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
-
private function get_neighbors_site(this) result(neighbors)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
Return Value
integer, (this%n_neighbors)
procedure, private, :: initialize => init_site
-
private subroutine init_site(this, ind, n_neighbors, neighbors, k_vec, r_vec)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
integer,
|
intent(in) |
|
|
:: |
ind |
|
integer,
|
intent(in) |
|
|
:: |
n_neighbors |
|
integer,
|
intent(in) |
|
|
:: |
neighbors(n_neighbors) |
|
integer,
|
intent(in), |
optional |
|
:: |
k_vec(3) |
|
integer,
|
intent(in), |
optional |
|
:: |
r_vec(3) |
|
procedure, private, :: set_index
-
private subroutine set_index(this, ind)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
integer,
|
intent(in) |
|
|
:: |
ind |
|
procedure, private, :: get_index
-
private function get_index(this)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
Return Value
integer
procedure, private, :: set_num_neighbors
-
private subroutine set_num_neighbors(this, n_neighbors)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
integer,
|
intent(in) |
|
|
:: |
n_neighbors |
|
-
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site),
|
intent(in) |
|
|
:: |
this |
|
Return Value
integer
procedure, private, :: set_neighbors
-
private subroutine set_neighbors(this, neighbors)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
integer,
|
intent(in) |
|
|
:: |
neighbors(this%n_neighbors) |
|
procedure, private, :: set_impurity
-
private subroutine set_impurity(this, flag)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
logical,
|
intent(in) |
|
|
:: |
flag |
|
procedure, private, :: is_impurity
-
private function is_impurity(this)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
Return Value
logical
procedure, private, :: set_bath
-
private subroutine set_bath(this, flag)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
logical,
|
intent(in) |
|
|
:: |
flag |
|
procedure, private, :: is_bath
-
private function is_bath(this)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
Return Value
logical
procedure, private, :: set_k_vec
-
private subroutine set_k_vec(this, k_vec)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
integer,
|
intent(in) |
|
|
:: |
k_vec(3) |
|
procedure, private, :: set_r_vec
-
private subroutine set_r_vec(this, r_vec)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(site)
|
|
|
|
:: |
this |
|
integer,
|
intent(in) |
|
|
:: |
r_vec(3) |
|