udfGetLastStepFlag()

Is this the last time step?

Syntax

lastStepFlag = udfGetLastStepFlag( udfHd ) ;

Type

AcuSolve User-Defined Function Global

Parameters

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

Return Value

lastStepFlag (integer)
Flag indicating whether or not this is the last time step.
0
No
1
Yes

Description

This routine determines if this is the last time step. For example,
Integer lastStepFlag ;
...
lastStepFlag = udfGetLastStepFlag( udfHd ) ;
if ( lastStepFlag == 1 ) {
   /* Logic if this is the last time step */
   ...
}

Errors

This routine expects a valid udfHd.