]> https://gitweb.dealii.org/ - dealii.git/commitdiff
simplify test
authorTimo Heister <timo.heister@gmail.com>
Sat, 8 Jun 2013 22:20:53 +0000 (22:20 +0000)
committerTimo Heister <timo.heister@gmail.com>
Sat, 8 Jun 2013 22:20:53 +0000 (22:20 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29800 0785d39b-7218-0410-832d-ea1e28bc413d

tests/gla/mat_03.cc

index da21a887054abd46699d7b9ebc1fd023a482ac35..057bb26b9586c8525b95f523bdd8e1a046489315 100644 (file)
@@ -88,15 +88,23 @@ void test ()
 
   if (myid==0)
     {
-      unsigned int v[]={0, 1, 2, 3, 4, 5, 6, 7, 8};
-      local_dofs.assign(v,v+9);
+//      unsigned int v[]={0, 1, 2, 3, 4, 5, 6, 7, 8};
+//      local_dofs.assign(v,v+9);
+      //cm.distribute_local_to_global (local_mat, local_dofs, matrix);
     }
   else
     {
-      unsigned int v[]={21, 39, 22, 40, 23, 41, 42, 43, 44};
-      local_dofs.assign(v,v+9);
+      //unsigned int v[]={21, 39, 22, 40, 23, 41, 42, 43, 44};
+      //local_dofs.assign(v,v+9);
+      //cm.distribute_local_to_global (local_mat, local_dofs, matrix);
+
+      unsigned int row = 21;
+      unsigned int n_values = 4;
+      unsigned int cols[] = {21, 22, 23, 39};
+      double vals[] = {1, 201, 401, 101};
+      matrix.add(row, n_values, cols, vals, false, true);
     }
-  cm.distribute_local_to_global (local_mat, local_dofs, matrix);
+
   matrix.compress(VectorOperation::add);
 
                                   // done

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.