From 4fddbfe32e75ae25ec92b8de8ce8c3709a8ed01f Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sat, 8 Jun 2013 22:20:53 +0000 Subject: [PATCH] simplify test git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29800 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/gla/mat_03.cc | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/tests/gla/mat_03.cc b/tests/gla/mat_03.cc index da21a88705..057bb26b95 100644 --- a/tests/gla/mat_03.cc +++ b/tests/gla/mat_03.cc @@ -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 -- 2.39.5