A callback function for user-defined search to be passed into df?interpolateex1d or df?searchcellsex1d.
FORTRAN:
status = dfssearchcellscallback(n, site, cell, flag, params)
status = dfdsearchcellscallback(n, site, cell, flag, params)
C:
status = dfsSearchCellsCallBack(n, site, cell, flag, params)
status = dfdSearchCellsCallBack(n, site, cell, flag, params)
Name |
Type |
Description |
---|---|---|
n |
Fortran: INTEGER(KIND=8) C: long long* |
Number of interpolation sites. |
Fortran: REAL(KIND=4) DIMENSION(*) for dfssearchcellscallback REAL(KIND=8) DIMENSION(*) for dfdsearchcellscallback C: float* for dfsSearchCellsCallBack double* for dfdSearchCellsCallBack |
Array of interpolation sites of size n. |
|
cell |
Fortran: INTEGER(KIND=8) DIMENSION(*) C: long long* |
Array of size n that returns indices of the cells computed by the callback function. |
flag |
Fortran: INTEGER(KIND=4) DIMENSION(*) C: int* |
Array of size n, with values set as follows:
|
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 or df?searchcellsex1d routine, this function performs a user-defined search.