#include <cx/DataAccess.h>cxErrorCode cxLatPtrGet(cxLattice *src, cxData **data, void **dataVals, cxCoord **coord, void **coordVals)
integer function cxLatPtrGet(src, datahand, pdataval, coordhand, pcoordval) integer src integer datahand, pdataval integer coordhand, pcoordvalpointer (pdataval, dataVals) pointer (pcoordval, coordVals) <type> dataVals(1) real coordVals(1)
If src is not valid, cxLatPtrGet returns cx_err_error, otherwise it returns cx_err_none.
The Fortran user can access the dataVals and coordVals 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.
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 cxLatPtrGet, because the request is simply ignored when the pointer comes in NULL.