]> https://gitweb.dealii.org/ - dealii.git/commitdiff
More MATRIX to MatrixType
authorDavid Wells <wellsd2@rpi.edu>
Thu, 12 Nov 2015 19:45:07 +0000 (14:45 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 12 Nov 2015 19:45:07 +0000 (14:45 -0500)
tests/slepc/solve_01.cc
tests/slepc/solve_04.cc
tests/slepc/testmatrix.h

index b28c2d4d317cf1dc11395866dcb51c4fcfc87bdd..278548a86094c8c9980b9c4a5f7d14cac7a12fed 100644 (file)
 #include <deal.II/lac/vector_memory.h>
 #include <typeinfo>
 
-template<class SOLVER, class MATRIX, typename VectorType>
+template<class SOLVER, typename MatrixType, typename VectorType>
 void
 check_solve( SOLVER &solver,
              const SolverControl &solver_control,
-             const MATRIX &A, const MATRIX &B,
+             const MatrixType &A, const MatrixType &B,
              std::vector<VectorType> &u, std::vector<PetscScalar > &v)
 {
   deallog << "Solver type: " << typeid(solver).name() << std::endl;
index dd63e04d9ffec574913f12aecf23174e170c38ce..5a15b3a1e74941b50aa6652b2d1caf06f67d1ce5 100644 (file)
 #include <deal.II/lac/vector_memory.h>
 #include <typeinfo>
 
-template<class SOLVER, class MATRIX, typename VectorType>
+template<class SOLVER, typename MatrixType, typename VectorType>
 void
 check_solve( SOLVER &solver,
              const SolverControl &solver_control,
-             const MATRIX &A,
+             const MatrixType &A,
              std::vector<VectorType> &u, std::vector<PetscScalar > &v)
 {
   deallog << "Solver type: " << typeid(solver).name() << std::endl;
index 969b4c29ecd36031f77325f6b6f58b36bd923395..07f00073c67ac6a742ccb29e4476aca71ec90899 100644 (file)
@@ -29,8 +29,8 @@ public:
   /**
    * Fill the matrix with values.
    */
-  template <typename MATRIX>
-  void diag(MATRIX &) const;
+  template <typename MatrixType>
+  void diag(MatrixType &) const;
 
   template <typename number>
   void gnuplot_print(std::ostream &, const Vector<number> &) const;
@@ -75,10 +75,10 @@ FDDiagMatrix::diag_structure(SP &structure) const
 }
 
 
-template<typename MATRIX>
+template<typename MatrixType>
 inline
 void
-FDDiagMatrix::diag(MATRIX &A) const
+FDDiagMatrix::diag(MatrixType &A) const
 {
   for (unsigned int i=0; i<=ny-2; i++)
     {
@@ -131,8 +131,8 @@ public:
   /**
    * Fill the matrix with values.
    */
-  template <typename MATRIX>
-  void three_point(MATRIX &) const;
+  template <typename MatrixType>
+  void three_point(MatrixType &) const;
 
 private:
   /**
@@ -168,10 +168,10 @@ FD1DLaplaceMatrix::three_point_structure(SP &structure) const
 }
 
 
-template<typename MATRIX>
+template<typename MatrixType>
 inline
 void
-FD1DLaplaceMatrix::three_point(MATRIX &A) const
+FD1DLaplaceMatrix::three_point(MatrixType &A) const
 {
   for (unsigned int i=0; i<=n-2; i++)
     {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.