afivo-streamer 1.1
1D/2D/3D streamer simulations with AMR
Loading...
Searching...
No Matches
Data Types | Functions/Subroutines
m_spline_interp Module Reference

Module for cubic spline interpolation. More...

Data Types

type  spline_t
 

Functions/Subroutines

subroutine, public spline_set_coeffs (x, y, n, spl)
 Calculate coefficients for cubic spline interpolation.
 
pure elemental real(dp) function, public spline_evaluate (u, spl)
 

Detailed Description

Module for cubic spline interpolation.

Author: Jannis Teunissen

This code is based on:

  1. spline.f (https://www.netlib.org/fmm/spline.f)
  2. spline.f90 (translation of spline.f, https://ww2.odu.edu/~agodunov/computing/programs/book2/Ch01/spline.f90)

License: the above two files do not specify a license, so I assume they are in the public domain, as is this code.

Function/Subroutine Documentation

◆ spline_evaluate()

pure elemental real(dp) function, public m_spline_interp::spline_evaluate ( real(dp), intent(in) u,
type(spline_t), intent(in) spl )
Parameters
[in]uEvaluate at this coordinate
[in]splSpline data

Definition at line 153 of file m_spline_interp.f90.

◆ spline_set_coeffs()

subroutine, public m_spline_interp::spline_set_coeffs ( real(dp), dimension(n), intent(in) x,
real(dp), dimension(n), intent(in) y,
integer, intent(in) n,
type(spline_t), intent(out) spl )

Calculate coefficients for cubic spline interpolation.

Parameters
[in]nSize of tabulated data
[in]xTabulated coordinates (in strictly increasing order)
[in]yTabulated values

Definition at line 42 of file m_spline_interp.f90.