db2ink Interface

public interface db2ink

2D initialization routines.

Calls

interface~~db2ink~~CallsGraph interface~db2ink db2ink proc~db2ink_default db2ink_default interface~db2ink->proc~db2ink_default proc~db2ink_multi db2ink_multi interface~db2ink->proc~db2ink_multi proc~check_inputs check_inputs proc~db2ink_default->proc~check_inputs proc~dbknot dbknot proc~db2ink_default->proc~dbknot proc~dbtpcf dbtpcf proc~db2ink_default->proc~dbtpcf proc~db2ink_multi->proc~db2ink_default proc~dbintk dbintk proc~dbtpcf->proc~dbintk proc~dbnslv dbnslv proc~dbtpcf->proc~dbnslv proc~dbintk->proc~dbnslv proc~dbnfac dbnfac proc~dbintk->proc~dbnfac proc~dbspvn dbspvn proc~dbintk->proc~dbspvn

Called by

interface~~db2ink~~CalledByGraph interface~db2ink db2ink proc~initialize_2d_auto_knots bspline_2d%initialize_2d_auto_knots proc~initialize_2d_auto_knots->interface~db2ink proc~initialize_2d_auto_knots_multi bspline_2d%initialize_2d_auto_knots_multi proc~initialize_2d_auto_knots_multi->interface~db2ink proc~initialize_2d_specify_knots bspline_2d%initialize_2d_specify_knots proc~initialize_2d_specify_knots->interface~db2ink proc~initialize_2d_specify_knots_multi bspline_2d%initialize_2d_specify_knots_multi proc~initialize_2d_specify_knots_multi->interface~db2ink proc~bspline_2d_constructor_auto_knots bspline_2d_constructor_auto_knots proc~bspline_2d_constructor_auto_knots->proc~initialize_2d_auto_knots proc~bspline_2d_constructor_specify_knots bspline_2d_constructor_specify_knots proc~bspline_2d_constructor_specify_knots->proc~initialize_2d_specify_knots interface~bspline_2d bspline_2d interface~bspline_2d->proc~bspline_2d_constructor_auto_knots interface~bspline_2d->proc~bspline_2d_constructor_specify_knots

Module Procedures

private pure subroutine db2ink_default(x, nx, y, ny, fcn, kx, ky, iknot, tx, ty, bcoef, iflag)

Determines the parameters of a function that interpolates the two-dimensional gridded data The interpolating function and its derivatives may subsequently be evaluated by the function db2val.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), dimension(:) :: x

(nx) array of abcissae. Must be strictly increasing.

integer(kind=ip), intent(in) :: nx

Number of abcissae

real(kind=wp), intent(in), dimension(:) :: y

(ny) array of abcissae. Must be strictly increasing.

integer(kind=ip), intent(in) :: ny

Number of abcissae

real(kind=wp), intent(in), dimension(:,:) :: fcn

(nx,ny) matrix of function values to interpolate. fcn(i,j) should contain the function value at the point (x(i),y(j))

integer(kind=ip), intent(in) :: kx

The order of spline pieces in ( ) (order = polynomial degree + 1)

integer(kind=ip), intent(in) :: ky

The order of spline pieces in ( ) (order = polynomial degree + 1)

integer(kind=ip), intent(in) :: iknot

knot sequence flag:

Read more…
real(kind=wp), intent(inout), dimension(:) :: tx

The (nx+kx) knots in the direction for the spline interpolant.

Read more…
real(kind=wp), intent(inout), dimension(:) :: ty

The (ny+ky) knots in the direction for the spline interpolant.

Read more…
real(kind=wp), intent(out), dimension(:,:) :: bcoef

(nx,ny) matrix of coefficients of the b-spline interpolant.

integer(kind=ip), intent(out) :: iflag Read more…

private pure subroutine db2ink_multi(x, nx, y, ny, fcn, kx, ky, iknot, tx, ty, bcoef, iflag)

Multiple-output version of db2ink: interpolates nf functions on the same grid, with the same knots. The last dimension of fcn and bcoef is the output index. Evaluate them with db2val (multiple-output version).

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), dimension(:) :: x

(nx) array of abcissae. Must be strictly increasing.

integer(kind=ip), intent(in) :: nx

Number of abcissae

real(kind=wp), intent(in), dimension(:) :: y

(ny) array of abcissae. Must be strictly increasing.

integer(kind=ip), intent(in) :: ny

Number of abcissae

real(kind=wp), intent(in), dimension(:,:,:) :: fcn

(nx,ny,nf) array of function values to interpolate: fcn(i1,i2,j) is output j at grid point (x(i1),y(i2))

integer(kind=ip), intent(in) :: kx

The order of spline pieces in

integer(kind=ip), intent(in) :: ky

The order of spline pieces in

integer(kind=ip), intent(in) :: iknot

knot sequence flag (see db2ink_default)

real(kind=wp), intent(inout), dimension(:) :: tx

The (nx+kx) knots in the direction

real(kind=wp), intent(inout), dimension(:) :: ty

The (ny+ky) knots in the direction

real(kind=wp), intent(out), dimension(:,:,:) :: bcoef

(nx,ny,nf) array of b-spline coefficients

integer(kind=ip), intent(out) :: iflag

status flag (see db2ink_default), or 6001 if fcn and bcoef do not have the same number of outputs (or it is zero)