Sets the additional error handler callback function and gets the old callback function.
FORTRAN:
oldcallback = vmlseterrorcallback( callback )
C:
oldcallback = vmlSetErrorCallBack( callback );
Name |
Description |
|
---|---|---|
FORTRAN: callback |
Address of the callback function. |
The callback function has the following format: The passed error structure is defined as follows: |
C: callback |
Pointer to the callback function. |
The callback function has the following format: The passed error structure is defined as follows: |
Name |
Type |
Description |
---|---|---|
oldcallback |
Fortran 90: INTEGER C: int |
FORTRAN: Address of the former callback function. C: Pointer to the former callback function. |
This function does not have a FORTRAN 77 interface due to the use of internal structures.
The callback function is called on each VML mathematical function error if VML_ERRMODE_CALLBACK error mode is set (see "Values of the mode Parameter").
Use the vmlSetErrorCallBack() function if you need to define your own callback function instead of default empty callback function.
The input structure for a callback function contains the following information about the error encountered:
the input value that caused an error
location (array index) of this value
the computed result value
error code
name of the function in which the error occurred.
You can insert your own error processing into the callback function. This may include correcting the passed result values in order to pass them back and resume computation. The standard error handler is called after the callback function only if it returns 0.