PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Public Member Functions | List of all members
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 More...
 
integer function spline_complex (x, y, xnew, ynew, ord, deriv, bcs, bcs_val, extrap)
 complex version More...
 

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:

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.

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 2003 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 1676 of file num_utilities.f90.

+ Here is the call graph for this function:

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