udfGetNumUsrVals()
Return the number of user values supplied in the input file.
Syntax
nUsrVals = udfGetNumUsrVals( udfHd ) ;
Type
AcuSolve User-Defined Function Basic
Parameters
- udfHd
- The opaque handle (pointer) which was passed to the user function.
Return Value
- nUsrVals (integer)
- The number of user values given in the input file is returned as an integer.
Description
Integer nUsrVals ;
Integer i ;
Real x, y ;
Real* usrVals ;
...
nUsrVals = udfGetNumUsrVals( udfHd ) ;
usrVals = udfGetUsrVals( udfHd ) ;
for ( i = 0 ; i < nUsrVals ; i+=2 ) {
x = usrVals[i] ;
y = usrVals[i+1] ;
...
}
Errors
This routine expects a valid udfHd.