From: Bruno Turcksin Date: Fri, 28 Oct 2016 19:37:07 +0000 (-0400) Subject: Fix test parallel_vector_18 for 64bit indices. X-Git-Tag: v8.5.0-rc1~531^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85fcce050ecd45ade4553f82717040c97f3f0558;p=dealii.git Fix test parallel_vector_18 for 64bit indices. --- 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;