]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use a std::complex function for the test fe_nedelec_singularity_01
authorDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Wed, 9 Oct 2019 08:41:38 +0000 (10:41 +0200)
committerDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Wed, 9 Oct 2019 08:41:38 +0000 (10:41 +0200)
tests/fe/fe_nedelec_singularity_01.cc

index 1541ab7d05315013eed1f7ac1a98b737cbbfbc78..a2275f68df6736c5e59f40d28fb28d0cfafdc1e2 100644 (file)
@@ -110,11 +110,11 @@ namespace nedelec_singularity
 
 
   template <int dim>
-  class ExactSolution : public Function<dim>
+  class ExactSolution : public Function<dim, std::complex<double>>
   {
   public:
     ExactSolution();
-    virtual double
+    virtual std::complex<double>
     value(const Point<dim> &p, const unsigned int component) const override;
   };
 
@@ -122,13 +122,13 @@ namespace nedelec_singularity
 
   template <int dim>
   ExactSolution<dim>::ExactSolution()
-    : Function<dim>(dim)
+    : Function<dim, std::complex<double>>(dim)
   {}
 
 
 
   template <int dim>
-  double
+  std::complex<double>
   ExactSolution<dim>::value(const Point<dim> & p,
                             const unsigned int component) const
   {

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.