udfSetUgdData()

Set the value of a user global data.

Syntax

udfSetUgdData( udfHd, ugd, ugdData ) ;

Type

AcuSolve User-Defined Function Global

Parameters

udfHd
The opaque handle (pointer) which was passed to the user function.
ugd (string)
Name of the user global data variable.
ugdData (real)
Value of the user global data.

Return Value

None

Description

This routine sets the value of the specified user global data. The user global data is created if it does not exist. For example,
udfSetUgdData( udfHd, "nCols", 2. ) ;

Errors

  • This routine expects a valid udfHd.
  • ugd must exist.
  • May only be called from a multiplier function or a mesh motion user-defined function.