From 59730472492b7a3b83da63337c8f97bfe5059b09 Mon Sep 17 00:00:00 2001 From: heister Date: Fri, 2 Nov 2012 21:32:22 +0000 Subject: [PATCH] change step-6 tp use abstract algebra git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@27323 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-6/step-6.cc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/deal.II/examples/step-6/step-6.cc b/deal.II/examples/step-6/step-6.cc index caf09197cd..04902efdf7 100644 --- a/deal.II/examples/step-6/step-6.cc +++ b/deal.II/examples/step-6/step-6.cc @@ -37,6 +37,15 @@ #include #include +#include + +namespace LA +{ + using namespace dealii::LinearAlgebraDealII; +// using namespace dealii::LinearAlgebraPETSc; +// using namespace dealii::LinearAlgebraTrilinos; +} + #include #include @@ -149,10 +158,10 @@ class Step6 ConstraintMatrix hanging_node_constraints; SparsityPattern sparsity_pattern; - SparseMatrix system_matrix; + LA::SparseMatrix system_matrix; - Vector solution; - Vector system_rhs; + LA::Vector solution; + LA::Vector system_rhs; }; @@ -561,7 +570,7 @@ void Step6::assemble_system () const unsigned int n_q_points = quadrature_formula.size(); FullMatrix cell_matrix (dofs_per_cell, dofs_per_cell); - Vector cell_rhs (dofs_per_cell); + LA::Vector cell_rhs (dofs_per_cell); std::vector local_dof_indices (dofs_per_cell); -- 2.39.5