From 2ec8be1c8783402b0bda7d3674ef6c52e709f32b Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 12 Feb 2013 21:12:01 +0000 Subject: [PATCH] Avoid one set of uses of deprecated functions. git-svn-id: https://svn.dealii.org/trunk@28344 0785d39b-7218-0410-832d-ea1e28bc413d --- .../deal.II/lac/sparse_vanka.templates.h | 31 +++---------------- 1 file changed, 5 insertions(+), 26 deletions(-) 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(); } -- 2.39.5