PB3D [2.47]
Ideal linear high-n MHD stability in 3-D
Loading...
Searching...
No Matches
num_utilities::spline Interface Reference

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
integer function spline_complex (x, y, xnew, ynew, ord, deriv, bcs, bcs_val, extrap)
 complex version

Detailed Description

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:

  • -1: periodic
  • 0: not-a-knot
  • 1: prescribe first derivative
  • 2: prescribe second derivative

However, for order 2 boundary condition 2 is not available and for order 1 none of them.

Furthermore, derivatives can be specified:

  • up to 1 for order 1 and 2
  • up to 2 for order 3

Finally, extrapolation can be performed as well.

Returns
ierr

Definition at line 276 of file num_utilities.f90.

Member Function/Subroutine Documentation

◆ spline_complex()

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

Parameters
[in]xcoordinates
[in]yfunction value
[in]xnewnew coordinates
[out]ynewnew function values
[in]ordorder [def 3]
[in]derivderivative [def 0]
[in]bcsboundary conditions [def 0]
[in]bcs_valboundary conditions [no def]
[in]extrapwhether extrapolation is allowed [def .false.]

Definition at line 2001 of file num_utilities.f90.

◆ spline_real()

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

Parameters
[in]xcoordinates
[in]yfunction value
[in]xnewnew coordinates
[out]ynewnew function values
[in]ordorder [def 3]
[in]derivderivative [def 0]
[in]bcsboundary conditions [def 0]
[in]bcs_valboundary conditions [no def]
[in]extrapwhether extrapolation is allowed [def .false.]

Definition at line 1674 of file num_utilities.f90.

Here is the call graph for this function:

The documentation for this interface was generated from the following file: