Houses species list class containing species initialized from config.json and accessed either via their ID or name
Getter for species based on id
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(SpeciesList), | intent(in) | :: | this | |||
integer(kind=ik), | intent(in) | :: | id |
Getter for speciesIDs
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(SpeciesList), | intent(in) | :: | this |
Getter for species based on name
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(SpeciesList), | intent(in) | :: | this | |||
character(len=*), | intent(in) | :: | name |
Return associated var with index ind of species with given name
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(SpeciesList), | intent(in) | :: | this | |||
character(len=*), | intent(in) | :: | name | |||
integer(kind=ik), | intent(in) | :: | ind |
Return associated var with index ind of species with given id
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(SpeciesList), | intent(in) | :: | this | |||
integer(kind=ik), | intent(in) | :: | id | |||
integer(kind=ik), | intent(in) | :: | ind |
SpeciesList initialization from config.json.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(SpeciesList), | intent(inout) | :: | this | |||
type(JSONController), | intent(inout) | :: | jsonCont |
JSONController used to get parameters from ./config.json |
||
type(MPIController), | intent(inout) | :: | mpiCont |
MPIController used with JSONController |
Species list object providing centralized access and initialization of species objects
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | userDefined | = | .false. |
True only if user explicitly sets it to true |
|
type(Species), | private, | allocatable, dimension(:) | :: | speciesEntries | |||
integer(kind=ik), | private, | allocatable, dimension(:) | :: | speciesIDs | |||
type(StringArray), | private, | allocatable, dimension(:) | :: | speciesNames |
procedure, public :: isDefined => isDefinedObject | |
procedure, public :: makeDefined => makeDefinedObject | |
procedure, public :: makeUndefined => makeUndefinedObject | |
procedure, public :: getSpeciesFromID | |
procedure, public :: getSpeciesFromName | |
procedure, public :: getSpeciesVarFromID | |
procedure, public :: getSpeciesVarFromName | |
procedure, public :: getSpeciesIDs | |
procedure, public :: init => initSpeciesList |