Returns the knot vectors of a bspline_2d.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(bspline_2d), | intent(inout) | :: | me |
the spline |
||
| real(kind=wp), | intent(out), | dimension(:), allocatable | :: | tx |
the |
|
| real(kind=wp), | intent(out), | dimension(:), allocatable | :: | ty |
the |
|
| integer(kind=ip), | intent(out) | :: | iflag |
status flag: 0 if no errors, 1 if the class is not initialized |
pure subroutine get_knots_2d(me,tx,ty,iflag) implicit none class(bspline_2d),intent(inout) :: me !! the spline real(wp),dimension(:),allocatable,intent(out) :: tx !! the `(nx+kx)` knots in the \(x\) direction real(wp),dimension(:),allocatable,intent(out) :: ty !! the `(ny+ky)` knots in the \(y\) direction integer(ip),intent(out) :: iflag !! status flag: 0 if no errors, !! 1 if the class is not initialized if (me%initialized) then tx = me%tx ty = me%ty iflag = 0_ip else allocate(tx(0)) allocate(ty(0)) iflag = 1_ip end if me%iflag = iflag end subroutine get_knots_2d