]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
Prefer MatrixType to Matrix in templates.
authorDavid Wells <wellsd2@rpi.edu>
Sat, 9 Jan 2016 21:37:13 +0000 (16:37 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 9 Jan 2016 21:45:12 +0000 (16:45 -0500)
cdr/common/include/deal.II-cdr/system_matrix.h
cdr/common/include/deal.II-cdr/system_matrix.templates.h

index a4b4a2f8433f9e5d2f66f25997d5c753b14f8c13..bb84c0d438ea588f56787ac5d5a9bb7b6c7bf9fe 100644 (file)
@@ -14,16 +14,16 @@ namespace CDR
 {
   using namespace dealii;
 
-  template<int dim, typename Matrix>
+  template<int dim, typename MatrixType>
   void create_system_matrix
   (const DoFHandler<dim>                                 &dof_handler,
    const QGauss<dim>                                     &quad,
    const std::function<Tensor<1, dim>(const Point<dim>)> convection_function,
    const CDR::Parameters                                 &parameters,
    const double                                           time_step,
-   Matrix                                                &system_matrix);
+   MatrixType                                            &system_matrix);
 
-  template<int dim, typename Matrix>
+  template<int dim, typename MatrixType>
   void create_system_matrix
   (const DoFHandler<dim>                                 &dof_handler,
    const QGauss<dim>                                     &quad,
@@ -31,6 +31,6 @@ namespace CDR
    const CDR::Parameters                                 &parameters,
    const double                                          time_step,
    const ConstraintMatrix                                &constraints,
-   Matrix                                                &system_matrix);
+   MatrixType                                            &system_matrix);
 }
 #endif
index 081fbd8c23163f8cae0e89249b093ab453bbc00f..6589e83bed7dbe3b17e9083ac3d270975820cf73 100644 (file)
@@ -73,7 +73,7 @@ namespace CDR
       }
   }
 
-  template<int dim, typename Matrix>
+  template<int dim, typename MatrixType>
   void create_system_matrix
   (const DoFHandler<dim>                                 &dof_handler,
    const QGauss<dim>                                     &quad,
@@ -81,7 +81,7 @@ namespace CDR
    const CDR::Parameters                                 &parameters,
    const double                                          time_step,
    const ConstraintMatrix                                &constraints,
-   Matrix                                                &system_matrix)
+   MatrixType                                            &system_matrix)
   {
     internal_create_system_matrix<dim>
       (dof_handler, quad, convection_function, parameters, time_step,
@@ -93,14 +93,14 @@ namespace CDR
        });
   }
 
-  template<int dim, typename Matrix>
+  template<int dim, typename MatrixType>
   void create_system_matrix
   (const DoFHandler<dim>                                 &dof_handler,
    const QGauss<dim>                                     &quad,
    const std::function<Tensor<1, dim>(const Point<dim>)> convection_function,
    const CDR::Parameters                                 &parameters,
    const double                                          time_step,
-   Matrix                                                &system_matrix)
+   MatrixType                                            &system_matrix)
   {
     internal_create_system_matrix<dim>
       (dof_handler, quad, convection_function, parameters, time_step,

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.