@@ -162,6 +162,10 @@ bool test_cluster(int size, bool use_given_partition) {
162
162
root_cluster_to_global (root_cluster, temporary_vector.data (), result_vector.data ());
163
163
is_error = is_error || !(random_vector == result_vector);
164
164
165
+ user_to_cluster (root_cluster, random_vector.data (), temporary_vector.data ());
166
+ cluster_to_user (root_cluster, temporary_vector.data (), result_vector.data ());
167
+ is_error = is_error || !(random_vector == result_vector);
168
+
165
169
// Test renumbering on partition
166
170
if (root_cluster.is_permutation_local ()) {
167
171
int partition_index = 0 ;
@@ -174,6 +178,10 @@ bool test_cluster(int size, bool use_given_partition) {
174
178
local_to_local_cluster (root_cluster, partition_index, random_vector.data (), temporary_vector.data ());
175
179
local_cluster_to_local (root_cluster, partition_index, temporary_vector.data (), result_vector.data ());
176
180
is_error = is_error || !(random_vector == result_vector);
181
+
182
+ user_to_cluster (*cluster_on_partition, random_vector.data (), temporary_vector.data ());
183
+ cluster_to_user (*cluster_on_partition, temporary_vector.data (), result_vector.data ());
184
+ is_error = is_error || !(random_vector == result_vector);
177
185
}
178
186
partition_index++;
179
187
}
@@ -205,12 +213,14 @@ bool test_cluster(int size, bool use_given_partition) {
205
213
}
206
214
// Test renumbering with copied local cluster
207
215
std::vector<int > local_random_vector (local_cluster.get_size (), 1 ), local_temporary_vector (local_cluster.get_size (), 1 ), local_result_vector (local_cluster.get_size (), 1 );
208
-
209
- MPI_Bcast (local_random_vector.data (), local_random_vector.size (), wrapper_mpi<int >::mpi_type (), 0 , MPI_COMM_WORLD);
210
-
216
+ generate_random_vector (local_random_vector);
211
217
local_to_local_cluster (local_cluster, rankWorld, local_random_vector.data (), local_temporary_vector.data ());
212
218
local_cluster_to_local (local_cluster, rankWorld, local_temporary_vector.data (), local_result_vector.data ());
213
219
is_error = is_error || !(local_random_vector == local_result_vector);
220
+
221
+ user_to_cluster (local_cluster, local_random_vector.data (), local_temporary_vector.data ());
222
+ cluster_to_user (local_cluster, local_temporary_vector.data (), local_result_vector.data ());
223
+ is_error = is_error || !(local_random_vector == local_result_vector);
214
224
}
215
225
}
216
226
0 commit comments