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
This routine determines if the current processor/subdomain is the primary one. For
example,
Integer primary ;
...
primary = udfPrim( udfHd ) ;
if ( primary == 1 ) {
/* possible global calculation */
} else {
/* other processors */
}
Errors
This routine expects a valid udfHd.