il_is_passing Function

public elemental function il_is_passing(il) result(is_passing)

Returns true if the passed pitch angle grid point is considered passing.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: il

Return Value logical


Contents

Source Code


Source Code

  elemental logical function il_is_passing(il) result(is_passing)
    implicit none
    integer, intent(in) :: il
    is_passing = il <= ng2
    ! If we want to improve the consistency of the passing wfb
    ! treatment we can replace the above with
    ! is_passing = il <= ng2 + 1
    ! To be explicit this might look like
    ! if (passing_wfb) then
    !     is_passing = il <= ng2 + 1
    ! else
    !     is_passing = il <= ng2
    ! end if
  end function il_is_passing