]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add first error estimator class.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 27 Apr 1998 13:00:48 +0000 (13:00 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 27 Apr 1998 13:00:48 +0000 (13:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@203 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/error_estimator.h [moved from deal.II/deal.II/include/numerics/error-estimator.h with 77% similarity]
deal.II/deal.II/source/numerics/error_estimator.cc [new file with mode: 0644]

similarity index 77%
rename from deal.II/deal.II/include/numerics/error-estimator.h
rename to deal.II/deal.II/include/numerics/error_estimator.h
index 695e805388c980bc9b21b759ff1b6a7aee3222c4..81d01eb9dd5be464a76e2211af0e22f42b85efeb 100644 (file)
@@ -5,12 +5,27 @@
 /*----------------------------   error-estimator.h     ---------------------------*/
 
 
+#include <base/exceptions.h>
+
+
+// forward declarations
+template <int dim> class DoFHandler;
+class dVector;
+
+
+
+
 template <int dim>
 class KellyErrorEstimator {
   public:
     void estimate_error (const DoFHandler<dim> &dof,
                         const dVector         &solution,
                         const dVector         &error) const;
+
+                                    /**
+                                     * Exception
+                                     */
+    DeclException0 (ExcNotImplemented);
 };
 
 
diff --git a/deal.II/deal.II/source/numerics/error_estimator.cc b/deal.II/deal.II/source/numerics/error_estimator.cc
new file mode 100644 (file)
index 0000000..3e2cc7a
--- /dev/null
@@ -0,0 +1,24 @@
+/*      $Id$                 */
+
+
+#include <numerics/error-estimator.h>
+#include <grid/dof.h>
+#include <lac/dvector.h>
+
+
+
+void KellyErrorEstimator<1>::estimate_error (const DoFHandler<1> &,
+                                            const dVector &,
+                                            dVector &) const {
+  Assert(false, ExcNotImplemented());
+};
+
+
+
+template <int dim>
+void KellyErrorEstimator<dim>::estimate_error (const DoFHandler<dim> &dof,
+                                              const dVector         &solution,
+                                              dVector               &error) 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.