udfGetSdUsrIds()

Return the nodal user IDs for the nodes in the subdomain.

Syntax

usrIds = udfGetSdUsrIds( udfHd ) ;

Type

AcuSolve User-Defined Subdomain Routine

Parameters

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

Return Value

usrIds (Integer*)
Pointer to one dimensional integer array of user IDs.

Description

This routine returns the array of user IDs for the nodes in the current subdomain. For example,
Integer* usrIds ;
Integer nNodes, node, usrNode ;
...
nNodes = udfGetNSdNodes( udfHd ) ;
usrIds = udfGetSdUsrIds( udfHd ) ;
for ( node = 0 ; node < nNodes ; node++ ) {
   usrNode = usrIds[node] ;
   ...
}

Errors

  • This routine expects a valid udfHd.
  • This routine may only be called within an external code.