NAME
cxDimsProd
- compute total number of data or coordinate values in a lattice
C SPECIFICATION
#include <cx/DataAccess.h>
long cxDimsProd(long nDim, long dims[], long nVar)
FORTRAN SPECIFICATION
integer function cxDimsProd(ndim, dims, nvar)
integer ndim, dims(ndim), nvar
PARAMETERS
-
nDim
-
Number of dimensions in the lattice.
-
dims
-
Array specifying number of nodes in each dimension.
-
nVar
-
Number of values at each node.
FUNCTION RETURN VALUE
cxDimsProd
returns an integer equal to the total number of data
or coordinate values in the lattice.
DESCRIPTION
This routine computes the product of all
dims[i] times nVar from i=0 to nDim-1 to give the total
number of data or coordinate values in a lattice. Set nVar to nDataVar
(the number of data values at each node) to compute the total number
of values in the cxData values array. For a curvilinear lattice, set
nVar to nCoordVar (the number of coordinate values at each node) to
calculate the total number of values in the cxCoord array.
SEE ALSO
cxDimsSum(3E)
Last modified: Mon Nov 18 13:48:22 GMT 1996
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996