df?interpcallback

A callback function for user-defined interpolation to be passed into df?interpolateex1d.

Syntax

FORTRAN:

status = dfsinterpcallback(n, cell, site, r, params)

status = dfdinterpcallback(n, cell, site, r, params)

C:

status = dfsInterpCallBack(n, cell, site, r, params)

status = dfdInterpCallBack(n, cell, site, r, params)

Include Files

Input Parameters

Name

Type

Description

n

Fortran: INTEGER(KIND=8)

C: long long*

Number of interpolation sites.

cell

Fortran: INTEGER(KIND=8) DIMENSION(*)

C: long long*

Array of size n containing indices of the cells to which the interpolation sites in array site belong.

site

Fortran: REAL(KIND=4) DIMENSION(*) for dfsinterpcallback

REAL(KIND=8) DIMENSION(*) for dfdinterpcallback

C: float* for dfsInterpCallBack

double* for dfdInterpCallBack

Array of interpolation sites of size n.

r

Fortran: REAL(KIND=4) DIMENSION(*) for dfsinterpcallback

REAL(KIND=8) DIMENSION(*) for dfdinterpcallback

C: float* for dfsInterpCallBack

double* for dfdInterpCallBack

Array of the computed interpolation results packed in row-major format.

params

Fortran: INTEGER DIMENSION(*)

C: void*

Pointer to user-defined parameters of the callback function.

Output Parameters

Name

Type

Description

status

Fortran: INTEGER

C: int

The status returned by the callback function:

  • Zero indicates successful completion of the callback operation.
  • A negative value indicates an error.
  • A positive value indicates a warning.
See "Task Status and Error Reporting" for error code definitions.

Description

When passed into the df?interpolateex1d routine, this function performs user-defined interpolation operation.

See Also


Submit feedback on this help topic