udfGetUsrHistsCurr()
Return the array of current history variables.
Syntax
usrHistsCurr = udfGetUsrHistsCurr( udfHd ) ;
Type
AcuSolve User-Defined Function Basic
Parameters
- udfHd
- The opaque handle (pointer) which was passed to the user function.
Return Value
- usrHistsCurr (real)
- The return value is an array of current history variables. This array has udfGetNumUsrHists() entries.
Description
Real* usrHistsCurr ; /* current step history variables */
Real* usrHistsPrev ; /* previous step history variables */
...
udfCheckNumUsrHists( udfHd, 2 ) ;
usrHistsCurr = udfGetUsrHistsCurr( udfHd ) ;
usrHistsPrev = udfGetUsrHistsPrev( udfHd ) ;
usrHistsCurr[0] = usrHistsPrev[0] + 1. ;
usrHistsCurr[1] = usrHistsPrev[1] + 2. ;
Errors
This routine expects a valid udfHd.