number_of_outputs Function

private pure function number_of_outputs(me) result(nf)

Returns the number of outputs (functions of the same inputs) of the spline: 1 for a spline initialized with a single function, and nf for one initialized with nf functions (the last dimension of fcn). Returns 0 if the class is not initialized.

Type Bound

bspline_class

Arguments

Type IntentOptional Attributes Name
class(bspline_class), intent(in) :: me

the spline

Return Value integer(kind=ip)

number of outputs


Source Code

    pure function number_of_outputs(me) result(nf)

    implicit none

    class(bspline_class),intent(in) :: me  !! the spline
    integer(ip)                     :: nf  !! number of outputs

    nf = me%nf

    end function number_of_outputs