]> https://gitweb.dealii.org/ - dealii.git/commitdiff
adjust step-37
authorDenis Davydov <davydden@gmail.com>
Sat, 25 Feb 2017 17:19:17 +0000 (18:19 +0100)
committerDenis Davydov <davydden@gmail.com>
Sat, 25 Feb 2017 17:19:17 +0000 (18:19 +0100)
examples/step-37/step-37.cc

index f74f388bf7f9b605c08fe0d7ff737b9cdb9cb01b..86d030ecdd6c3d07f9004bc3f3744a87f9388b51 100644 (file)
@@ -241,7 +241,7 @@ namespace Step37
   // not in general, which may lead to segmentation faults at strange places
   // for some systems or suboptimal performance for other systems.
   template <int dim, int fe_degree, typename number>
-  class LaplaceOperator : public MatrixFreeOperators::Base<dim,number>
+  class LaplaceOperator : public MatrixFreeOperators::Base<dim,LinearAlgebra::distributed::Vector<number> >
   {
   public:
     typedef number value_type;
@@ -281,7 +281,7 @@ namespace Step37
   template <int dim, int fe_degree, typename number>
   LaplaceOperator<dim,fe_degree,number>::LaplaceOperator ()
     :
-    MatrixFreeOperators::Base<dim, number>()
+    MatrixFreeOperators::Base<dim, LinearAlgebra::distributed::Vector<number> >()
   {}
 
 
@@ -291,7 +291,7 @@ namespace Step37
   LaplaceOperator<dim,fe_degree,number>::clear ()
   {
     coefficient.reinit(0, 0);
-    MatrixFreeOperators::Base<dim,number>::clear();
+    MatrixFreeOperators::Base<dim,LinearAlgebra::distributed::Vector<number> >::clear();
   }
 
 

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.