Suggests a size for each dimension for a Cartesian topology, given the number of nodes and dimensions.
Namespace:
MPIAssembly: MPI (in MPI.dll)
Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public static void ComputeDimensions( int nnodes, int ndims, ref int[] dims ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub ComputeDimensions ( _ nnodes As Integer, _ ndims As Integer, _ ByRef dims As Integer() _ ) |
| Visual C++ |
|---|
public: static void ComputeDimensions( int nnodes, int ndims, array<int>^% dims ) |
Parameters
- nnodes
- Type: System..::.Int32
The number of nodes in the grid.
- ndims
- Type: System..::.Int32
The number of dimensions.
- dims
- Type:
array<
System..::.Int32
>[]()[]
%
An array of size ndims to store the suggested sizes. Nonzero entries will be taken as given sizes.