]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a function static which needs not be a member function.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 28 May 1998 08:33:38 +0000 (08:33 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 28 May 1998 08:33:38 +0000 (08:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@368 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/error_estimator.h
deal.II/deal.II/source/numerics/error_estimator.cc

index 4ab4f49b455534a83456442014101bc6a75f5e02..a1609f1601d4532a8f4cf72bafe9e85aefd64c58 100644 (file)
@@ -155,13 +155,13 @@ class KellyErrorEstimator {
                                      */
     typedef map<unsigned char,const Function<dim>*> FunctionMap;
     
-    void estimate_error (const DoFHandler<dim>    &dof,
-                        const Quadrature<dim-1>  &quadrature,
-                        const FiniteElement<dim> &fe,
-                        const Boundary<dim>      &boundary,
-                        const FunctionMap        &neumann_bc,
-                        const dVector            &solution,
-                        dVector                  &error) const;
+    static void estimate_error (const DoFHandler<dim>    &dof,
+                               const Quadrature<dim-1>  &quadrature,
+                               const FiniteElement<dim> &fe,
+                               const Boundary<dim>      &boundary,
+                               const FunctionMap        &neumann_bc,
+                               const dVector            &solution,
+                               dVector                  &error);
 
                                     /**
                                      * Exception
index 5cefcb81f5a236ae0f1574033f9bc585df19be9c..f1bfe385367dc4c97d966c8e966a00db33d35b83 100644 (file)
@@ -30,7 +30,7 @@ void KellyErrorEstimator<1>::estimate_error (const DoFHandler<1> &,
                                             const Boundary<1> &,
                                             const FunctionMap &,
                                             const dVector &,
-                                            dVector &) const {
+                                            dVector &) {
   Assert(false, ExcNotImplemented());
 };
 
@@ -43,7 +43,7 @@ void KellyErrorEstimator<dim>::estimate_error (const DoFHandler<dim>    &dof,
                                               const Boundary<dim>      &boundary,
                                               const FunctionMap        &neumann_bc,
                                               const dVector            &solution,
-                                              dVector                  &error) const {
+                                              dVector                  &error) {
   Assert (neumann_bc.find(255) == neumann_bc.end(),
          ExcInvalidBoundaryIndicator());
 

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.