Object-oriented species registry container for cleaner access.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=name_len), | public, | allocatable | :: | name(:) | |||
| integer, | public | :: | nspecies | = | 0 |
Bound procedure to find the index of a species from the registry instance.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(species_registry_t), | intent(in) | :: | this |
The species registry instance. |
||
| character(len=*), | intent(in) | :: | target |
The target species name to lookup. |
Bound procedure to find the index of a species, raising a fatal error if it is missing.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(species_registry_t), | intent(in) | :: | this |
The species registry instance. |
||
| character(len=*), | intent(in) | :: | target |
The target species name to require. |
||
| character(len=*), | intent(in) | :: | owner |
The calling subsystem module name. |
type :: species_registry_t integer :: nspecies = 0 !< Number of registered species. character(len=name_len), allocatable :: name(:) !< Array of registered species names. contains procedure :: index_of => registry_index_of procedure :: require_index => registry_require_index end type species_registry_t