From: Wolfgang Bangerth Date: Tue, 12 Feb 2013 21:12:01 +0000 (+0000) Subject: Avoid one set of uses of deprecated functions. X-Git-Tag: v8.0.0~1341 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29f0b4f26b9abedd5f7ea94c82676f41a0156e8b;p=dealii.git Avoid one set of uses of deprecated functions. git-svn-id: https://svn.dealii.org/trunk@28344 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/sparse_vanka.templates.h b/deal.II/include/deal.II/lac/sparse_vanka.templates.h index 85570af423..586bad6e08 100644 --- a/deal.II/include/deal.II/lac/sparse_vanka.templates.h +++ b/deal.II/include/deal.II/lac/sparse_vanka.templates.h @@ -157,9 +157,7 @@ SparseVanka::compute_inverse (const unsigned int row, const unsigned int row_length = structure.row_length(row); - FullMatrix &this_inverse = *new FullMatrix (row_length, - row_length); - inverses[row] = &this_inverse; + inverses[row] = new FullMatrix (row_length, row_length); // collect the dofs that couple // with @p row @@ -168,31 +166,12 @@ SparseVanka::compute_inverse (const unsigned int row, local_indices[i] = structure.column_number(row, i); // Build local matrix - for (unsigned int i=0; iglobal_entry(global_entry); - } + inverses[row]->extract_submatrix_from (*matrix, + local_indices, + local_indices); // Compute inverse - this_inverse.gauss_jordan(); + inverses[row]->gauss_jordan(); }