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
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.