FindSpanMult Subroutine

private pure elemental subroutine FindSpanMult(me, u, k, s)

Computes the span and multiplicity of a knot

Arguments

Type IntentOptional AttributesName
class(basis), intent(in) :: me
real(kind=wp), intent(in) :: u

Given value

integer, intent(out) :: k

Knot span index of value

integer, intent(out) :: s

Multiplicity of value


Contents

Source Code


Source Code

        pure elemental subroutine FindSpanMult(me,u,k,s)
            class(basis), intent(in)    :: me
            real(wp), intent(in)        :: u        !< Given \( u \) value
            integer, intent(out)        :: k        !< Knot span index of \( u \) value
            integer, intent(out)        :: s        !< Multiplicity of \( u \) value
            
            k = me%FindSpan(u)
            s = me%FindMult(k,u)    
        end subroutine FindSpanMult