PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
Wrapper to the pspline library, making it easier to use for 1-D applications where speed is not the main priority. If spline representations are to be reused, manually use the library. More...
Public Member Functions | |
integer function | spline_real (x, y, xnew, ynew, ord, deriv, bcs, bcs_val, extrap) |
real version More... | |
integer function | spline_complex (x, y, xnew, ynew, ord, deriv, bcs, bcs_val, extrap) |
complex version More... | |
Wrapper to the pspline library, making it easier to use for 1-D applications where speed is not the main priority. If spline representations are to be reused, manually use the library.
Order 1 (linear), 2 (akima hermite) or 3 (cubic) possible. Boundary conditions are possible:
However, for order 2 boundary condition 2 is not available and for order 1 none of them.
Furthermore, derivatives can be specified:
Finally, extrapolation can be performed as well.
Definition at line 276 of file num_utilities.f90.
integer function num_utilities::spline::spline_complex | ( | real(dp), dimension(:), intent(in) | x, |
complex(dp), dimension(:), intent(in) | y, | ||
real(dp), dimension(:), intent(in) | xnew, | ||
complex(dp), dimension(:), intent(out) | ynew, | ||
integer, intent(in), optional | ord, | ||
integer, intent(in), optional | deriv, | ||
integer, dimension(2), intent(in), optional | bcs, | ||
complex(dp), dimension(2), intent(in), optional | bcs_val, | ||
logical, intent(in), optional | extrap | ||
) |
complex version
[in] | x | coordinates |
[in] | y | function value |
[in] | xnew | new coordinates |
[out] | ynew | new function values |
[in] | ord | order [def 3] |
[in] | deriv | derivative [def 0] |
[in] | bcs | boundary conditions [def 0] |
[in] | bcs_val | boundary conditions [no def] |
[in] | extrap | whether extrapolation is allowed [def .false.] |
Definition at line 2003 of file num_utilities.f90.
integer function num_utilities::spline::spline_real | ( | real(dp), dimension(:), intent(in), target | x, |
real(dp), dimension(:), intent(in) | y, | ||
real(dp), dimension(:), intent(in), target | xnew, | ||
real(dp), dimension(:), intent(out) | ynew, | ||
integer, intent(in), optional | ord, | ||
integer, intent(in), optional | deriv, | ||
integer, dimension(2), intent(in), optional | bcs, | ||
real(dp), dimension(2), intent(in), optional | bcs_val, | ||
logical, intent(in), optional | extrap | ||
) |
real version
[in] | x | coordinates |
[in] | y | function value |
[in] | xnew | new coordinates |
[out] | ynew | new function values |
[in] | ord | order [def 3] |
[in] | deriv | derivative [def 0] |
[in] | bcs | boundary conditions [def 0] |
[in] | bcs_val | boundary conditions [no def] |
[in] | extrap | whether extrapolation is allowed [def .false.] |
Definition at line 1676 of file num_utilities.f90.