Yet Another eXchange Tool 0.11.2
|
#include <xt/xt_idxlist.h>
Go to the source code of this file.
Functions | |
Xt_idxlist | xt_idxsection_new (Xt_int start, int num_dimensions, const Xt_int global_size[num_dimensions], const int local_size[num_dimensions], const Xt_int local_start[num_dimensions]) |
Xt_idxlist | xt_idxsection_unpack (void *buffer, int buffer_size, int *position, MPI_Comm comm) |
Definition in file xt_idxsection.h.
Xt_idxlist xt_idxsection_new | ( | Xt_int | start, |
int | num_dimensions, | ||
const Xt_int | global_size[num_dimensions], | ||
const int | local_size[num_dimensions], | ||
const Xt_int | local_start[num_dimensions] ) |
generates an index list that is comprised of a section of a set of indices that are arranged in an n-dimensional cartesian coordinate system. The linear index correspondence is computed such that the right-most dimension is the one where indices increase fastest (i.e. according to C convention).
[in] | start | lowest index of the global array (typically 0 or 1) |
[in] | num_dimensions | number of dimensions |
[in] | global_size | global size of each dimension |
[in] | local_size | size of the local section in each dimension |
[in] | local_start | vector with the lowest position in each dimension of the local window within the global index space |
Definition at line 333 of file xt_idxsection.c.
Xt_idxlist xt_idxsection_unpack | ( | void * | buffer, |
int | buffer_size, | ||
int * | position, | ||
MPI_Comm | comm ) |