A callback function for user-defined interpolation to be passed into df?interpolateex1d.
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)
Name |
Type |
Description |
---|---|---|
n |
Fortran: INTEGER(KIND=8) C: long long* |
Number of interpolation sites. |
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. |
Name |
Type |
Description |
---|---|---|
status |
Fortran: INTEGER C: int |
The status returned by the callback function:
|
When passed into the df?interpolateex1d routine, this function performs user-defined interpolation operation.