getMinus_double Function

public function getMinus_double(nSwitches, bVal, double) result(minusWeight)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: nSwitches
real(kind=dp), intent(in) :: bVal
type(WeightData_t), intent(in) :: double

Return Value real(kind=dp)


Contents

Source Code


Source Code

    function getMinus_double(nSwitches, bVal, double) result(minusWeight)
        real(dp), intent(in) :: nSwitches, bVal
        type(WeightData_t), intent(in) :: double
        real(dp) :: minusWeight
        character(*), parameter :: this_routine = "getMinus_double"
        ASSERT(nSwitches >= 0.0_dp)

        minusWeight = double%F + nSwitches / max(1.0_dp, bVal)

        ASSERT(minusWeight >= 0.0_dp)
    end function getMinus_double