udfGetUsrHistsPrev()

Return the array of history variables from the previous time step.

Syntax

usrHistsPrev = udfGetUsrHistsPrev( udfHd ) ;

Type

AcuSolve User-Defined Function Basic

Parameters

udfHd
The opaque handle (pointer) which was passed to the user function.

Return Value

usrHistPrev (real)
The return value is an array of history variables from the previous time step. This array has udfGetNumUsrHists() entries.

Description

This routine returns the array of history variables from the previous time step. For the first time step, this array is initialized to the array given in the input file. The array is read-only. At the end of the time step the "current" history variables are copied into the previous history variables. See udfGetUsrHistsCurr for an example.

Errors

This routine expects a valid udfHd.