]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use the name make_coefficient_table() in analogy to make_shared() etc.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 13 May 2020 21:39:48 +0000 (15:39 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 14 May 2020 20:26:27 +0000 (14:26 -0600)
examples/step-50/step-50.cc

index a7caa87c26d2c1f9ddc3e81e2e7d4f21e78e0707..e5cc7d0b9b4df735c2cfd8b2c1decdef5bba2424 100644 (file)
@@ -183,7 +183,7 @@ public:
   // need a function that creates a Table of coefficient values for a
   // set of cells provided by the MatrixFree operator argument here.
   template <typename number>
-  std::shared_ptr<Table<2, VectorizedArray<number>>> create_coefficient_table(
+  std::shared_ptr<Table<2, VectorizedArray<number>>> make_coefficient_table(
     const MatrixFree<dim, number, VectorizedArray<number>> &mf_storage) const;
 };
 
@@ -242,7 +242,7 @@ number Coefficient<dim>::average_value(
 template <int dim>
 template <typename number>
 std::shared_ptr<Table<2, VectorizedArray<number>>>
-Coefficient<dim>::create_coefficient_table(
+Coefficient<dim>::make_coefficient_table(
   const MatrixFree<dim, number, VectorizedArray<number>> &mf_storage) const
 {
   std::shared_ptr<Table<2, VectorizedArray<number>>> coefficient_table =
@@ -516,7 +516,7 @@ void LaplaceProblem<dim, degree>::setup_system()
 
           const Coefficient<dim> coefficient;
           mf_system_matrix.set_coefficient(
-            coefficient.create_coefficient_table(*mf_storage));
+            coefficient.make_coefficient_table(*mf_storage));
 
           break;
         }
@@ -620,7 +620,7 @@ void LaplaceProblem<dim, degree>::setup_multigrid()
 
               const Coefficient<dim> coefficient;
               mf_mg_matrix[level].set_coefficient(
-                coefficient.create_coefficient_table(*mf_storage_level));
+                coefficient.make_coefficient_table(*mf_storage_level));
 
               mf_mg_matrix[level].compute_diagonal();
             }

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.