#include <cx/DataAccess.h>integer function cxConnPtrGet(src, numelements, numconnections, pelements, pconnections )
cxErrorCode cxConnPtrGet(cxConnection *src, long *numElements, long *numConnections, long **elements, long **connections)
integer src integer numelements, numconnections integer pelements, pconnections pointer (pelements, elements) pointer (pconnections, connections) integer elements(numelements) integer connections(numconnections)
- Input connection list data structure.
- Output length of the elements array.
- Output length of the connections array.
- Output pointer to the array of the cumulative number of connections from all lattice elements at a given pyramid layer.
- Output pointer to the array of the concatenated list of all connections (represented by the index number of the connection's destination) for the lattice elements at a given pyramid layer.
The Fortran user can access the elements and connections arrays by using the Fortran pointer construction to equivalence the returned integer memory address and the start of the desired array, as indicated in the Fortran specification above.
cxConnPtrGet performs essentially the same function as repeated calls to the cxConnEleGet routine, but is many times faster since it avoids data copying and the overhead of multiple subroutine calls.
A return value of cx_err_none indicates success.
The user can tell the function not to get information on a particular field by passing a NULL pointer value. You need not create dummy variables in the calling routine which calls cxConnPtrGet, because the request is simply ignored when the pointer comes in NULL.cxConnNew(3E), cxConnPtrSet(3E), cxConnEleGet(3E)
Last modified: Mon Nov 6 16:32:59 GMT 2000
[ Documentation Home ] © The Numerical Algorithms Group Ltd, Oxford UK. 1996