From: heister Date: Sat, 8 Jun 2013 22:20:53 +0000 (+0000) Subject: simplify test X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f6dc526104e0b1e34645e49d981a3e482be1ad7;p=dealii-svn.git simplify test git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29800 0785d39b-7218-0410-832d-ea1e28bc413d --- 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