udfSetUsrHandle()

Save the handle (pointer) to user data for future retrieval.

Syntax

udfSetUsrHandle( udfHd, name, usrHandle ) ;

Type

AcuSolve User-Defined Function Basic

Parameters

udfHd
The opaque handle (pointer) which was passed to the user function.
name (string)
Name of the user data.
usrHandle (real)
Pointer to user data.

Return Value

None

Description

This routine saves the handle (pointer) to user data for future retrieval. For example,
if ( udfFirstCall(udfHd) ) {
     vtkHd = (VtkAcuSolve*) malloc( sizeof(VtkAcuSolve) ) ;
     udfSetUsrHandle( udfHd, "VTK", (Data) vtkHd ) ;
}

Errors

This routine expects a valid udfHd.