is_electron_species Function

public elemental function is_electron_species(spec)

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)

Arguments

Type IntentOptional Attributes Name
type(specie), intent(in) :: spec

Return Value logical


Contents

Source Code


Source Code

  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