udfGetNbcNumUsrVals()

Return the number of user values supplied in the input file.

Syntax

nUsrVals = udfGetNbcNumUsrVals( udfHd ) ;

Type

AcuSolve User-Defined Nodal Boundary Condition

Parameters

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

Return Value

nUsrVals (integer)
Number of user values given in the input file.

Description

This routine returns the number of user values supplied in the input file. It is most useful when the number of parameters is not know a priori, such as for an interpolated curve fit. For example,
Integer nUsrVals ;
Integer i ;
Real x, y ;
Real* usrVals ;
...
nUsrVals = udfGetNbcNumUsrVals( udfHd ) ;
usrVals = udfGetNbcUsrVals( udfHd ) ;
for ( i = 0 ; i < nUsrVals ; i+=2 ) {
   x = usrVals[i] ;
   y = usrVals[i+1] ;
   ...
}

Errors

This routine expects a valid udfHd.