Commit 69eb2f1b authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Merge declaration and definition.

parent 030b2726
......@@ -306,8 +306,6 @@ test_rr_redist(MPI_Comm comm)
// redist test with two redists that do a round robin exchange in
// different directions
Xt_idxlist src_indices;
Xt_int src_indices_[elems_per_rank], dst_indices_[2][elems_per_rank];
for (Xt_int i = 0; i < elems_per_rank; ++i) {
......@@ -319,7 +317,7 @@ test_rr_redist(MPI_Comm comm)
= (Xt_int)((temp < 0)?(comm_size * elems_per_rank - 1):temp);
}
src_indices = xt_idxvec_new(src_indices_, elems_per_rank);
Xt_idxlist src_indices = xt_idxvec_new(src_indices_, elems_per_rank);
Xt_redist redists[2];
for (size_t i = 0; i < 2; ++i) {
Xt_idxlist dst_indices = xt_idxvec_new(dst_indices_[i], elems_per_rank);
......
......@@ -157,7 +157,6 @@ int main(void) {
// generate redist_repetition
enum { num_repetitions = 3 };
Xt_redist redist_repeat;
static const double src_data[num_repetitions][src_slice_len]
= {{1,2,3,4,5},{6,7,8,9,10},{11,12,13,14,15}};
double dst_data[num_repetitions][dst_slice_len];
......@@ -168,9 +167,10 @@ int main(void) {
int src_displacements[num_repetitions] = {0, 1, 2};
int dst_displacements[num_repetitions] = {2, 1, 0};
redist_repeat = xt_redist_repeat_asym_new(redist, src_extent, dst_extent,
num_repetitions, src_displacements,
dst_displacements);
Xt_redist redist_repeat
= xt_redist_repeat_asym_new(redist, src_extent, dst_extent,
num_repetitions, src_displacements,
dst_displacements);
// test communicator of redist
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment