From: heister Date: Fri, 2 Nov 2012 21:32:22 +0000 (+0000) Subject: change step-6 tp use abstract algebra X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59730472492b7a3b83da63337c8f97bfe5059b09;p=dealii-svn.git 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 --- 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);