Check the inputs to db1root, db1min, and db1max.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ip), | intent(in) | :: | nx |
number of b-spline coefficients |
||
| integer(kind=ip), | intent(in) | :: | kx |
order of the b-spline |
||
| integer(kind=ip), | intent(out) | :: | iflag |
status flag |
pure subroutine check_root_inputs(nx,kx,iflag) implicit none integer(ip),intent(in) :: nx !! number of b-spline coefficients integer(ip),intent(in) :: kx !! order of the b-spline integer(ip),intent(out) :: iflag !! status flag if (kx<2_ip) then iflag = 4001_ip else if (nx<kx) then iflag = 4002_ip else iflag = 0_ip end if end subroutine check_root_inputs