]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix test parallel_vector_18 for 64bit indices. 3307/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 28 Oct 2016 19:37:07 +0000 (15:37 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 28 Oct 2016 19:37:07 +0000 (15:37 -0400)
tests/mpi/parallel_vector_18.cc

index d8387d0dbcac91016991b17acdf7b54a87072cc1..c9c3f884141f5cc59fe58f9f7d5c4033c44efed0 100644 (file)
@@ -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;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.