Determine if the passed species instance is considered electron like. In other words if spec%type matches any of the recognised electron like types (electron, hybrid_electron)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(specie), | intent(in) | :: | spec |
elemental logical function is_electron_species(spec)
implicit none
type(specie), intent(in) :: spec
is_electron_species = any(spec%type == electron_like_species)
end function is_electron_species