udfPrim()
Determine whether this the primary processor/subdomain.
Syntax
primary = udfPrim( udfHd ) ;
Type
AcuSolve User-Defined Function Basic
Parameters
- udfHd
- The opaque handle (pointer) which was passed to the user function.
Return Value
- primary (integer)
- The return value primary is a Flag indicating whether or not
this is the primary processor:
- 0
- No, this is not the primary processor.
- 1
- Yes, this is the primary processor.
Description
Integer primary ;
...
primary = udfPrim( udfHd ) ;
if ( primary == 1 ) {
/* possible global calculation */
} else {
/* other processors */
}
Errors
This routine expects a valid udfHd.