nag_pde_interp_1d_coll (d03pyc) may be used in conjunction with either
nag_pde_parab_1d_coll (d03pdc) or
nag_pde_parab_1d_coll_ode (d03pjc). It computes the solution and its first derivative at user-specified points in the spatial coordinate.
nag_pde_interp_1d_coll (d03pyc) is an interpolation function for evaluating the solution of a system of partial differential equations (PDEs), or the PDE components of a system of PDEs with coupled ordinary differential equations (ODEs), at a set of user-specified points. The solution of a system of equations can be computed using
nag_pde_parab_1d_coll (d03pdc) or
nag_pde_parab_1d_coll_ode (d03pjc) on a set of mesh points;
nag_pde_interp_1d_coll (d03pyc) can then be employed to compute the solution at a set of points other than those originally used in
nag_pde_parab_1d_coll (d03pdc) or
nag_pde_parab_1d_coll_ode (d03pjc). It can also evaluate the first derivative of the solution.
Polynomial interpolation is used between each of the break-points
, for
. When the derivative is needed (
), the array
must not contain any of the break-points, as the method, and consequently the interpolation scheme, assumes that only the solution is continuous at these points.
None.
- 1:
– IntegerInput
-
On entry: the number of PDEs.
Constraint:
.
- 2:
– const doubleInput
-
Note: the th element of the matrix is stored in .
On entry: the PDE part of the original solution returned in the argument
u by the function
nag_pde_parab_1d_coll (d03pdc) or
nag_pde_parab_1d_coll_ode (d03pjc).
- 3:
– IntegerInput
-
On entry: the number of break-points.
Constraint:
.
- 4:
– const doubleInput
-
On entry:
, for
, must contain the break-points as used by
nag_pde_parab_1d_coll (d03pdc) or
nag_pde_parab_1d_coll_ode (d03pjc).
Constraint:
.
- 5:
– IntegerInput
-
On entry: the degree of the Chebyshev polynomial used for approximation as used by
nag_pde_parab_1d_coll (d03pdc) or
nag_pde_parab_1d_coll_ode (d03pjc).
Constraint:
.
- 6:
– IntegerInput
-
Constraint:
.
- 7:
– const doubleInput
-
On entry: , for , must contain the spatial interpolation points.
Constraints:
- ;
- if , , for and .
- 8:
– IntegerInput
-
On entry: the number of interpolation points.
Constraint:
.
- 9:
– IntegerInput
-
On entry: specifies the interpolation to be performed.
- The solution at the interpolation points are computed.
- Both the solution and the first derivative at the interpolation points are computed.
Constraint:
or .
- 10:
– doubleOutput
Note: the dimension,
dim, of the array
up
must be at least
.
The element is stored in the array element .
On exit: if
,
, contains the value of the solution
, at the interpolation points
, for
and
.
If , contains and contains at these points.
- 11:
– doubleCommunication Array
-
The array
rsave contains information required by
nag_pde_interp_1d_coll (d03pyc) as returned by
nag_pde_parab_1d_coll (d03pdc) or
nag_pde_parab_1d_coll_ode (d03pjc). The contents of
rsave must not be changed from the call to
nag_pde_parab_1d_coll (d03pdc) or
nag_pde_parab_1d_coll_ode (d03pjc). Some elements of this array are overwritten on exit.
- 12:
– IntegerInput
-
- 13:
– NagError *Input/Output
-
The NAG error argument (see
Section 3.7 in How to Use the NAG Library and its Documentation).
- NE_ALLOC_FAIL
-
Dynamic memory allocation failed.
See
Section 2.3.1.2 in How to Use the NAG Library and its Documentation for further information.
- NE_BAD_PARAM
-
On entry, argument had an illegal value.
-
Extrapolation is not allowed.
- NE_INCOMPAT_PARAM
-
On entry, and at least one interpolation point coincides with a break-point, i.e., interpolation point no with value is close to break-point with value .
- NE_INT
-
On entry, :
.
On entry, .
Constraint: or .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_3
-
On entry, , and .
Constraint: .
- NE_INTERNAL_ERROR
-
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact
NAG for assistance.
See
Section 2.7.6 in How to Use the NAG Library and its Documentation for further information.
- NE_NO_LICENCE
-
Your licence key may have expired or may not have been installed correctly.
See
Section 2.7.5 in How to Use the NAG Library and its Documentation for further information.
- NE_NOT_STRICTLY_INCREASING
-
On entry, break-points
xbkpts badly ordered:
,
,
and
.
On entry, interpolation points
xp badly ordered:
,
,
and
.
None.