From 85fcce050ecd45ade4553f82717040c97f3f0558 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Fri, 28 Oct 2016 15:37:07 -0400 Subject: [PATCH] Fix test parallel_vector_18 for 64bit indices. --- tests/mpi/parallel_vector_18.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/mpi/parallel_vector_18.cc b/tests/mpi/parallel_vector_18.cc index d8387d0dbc..c9c3f88414 100644 --- a/tests/mpi/parallel_vector_18.cc +++ b/tests/mpi/parallel_vector_18.cc @@ -49,13 +49,14 @@ void test () // set local values if (myid < 8) { - unsigned int indices[2]; + types::global_dof_index n_elements = 2; + types::global_dof_index indices[n_elements]; indices[0] = myid*2; indices[1] = myid*2+1; float values[2]; values[0] = myid*2.0; values[1] = myid*2.0+1.0; - v.add (2, &indices[0], &values[0]); + v.add (n_elements, &indices[0], &values[0]); } v.compress(VectorOperation::insert); v*=2.0; -- 2.39.5