jump_error_estimator.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 
20 #ifndef LIBMESH_JUMP_ERROR_ESTIMATOR_H
21 #define LIBMESH_JUMP_ERROR_ESTIMATOR_H
22 
23 // Local Includes
24 #include "libmesh/auto_ptr.h"
25 #include "libmesh/dense_vector.h"
27 #include "libmesh/fe_base.h"
28 
29 // C++ includes
30 #include <cstddef>
31 #include <string>
32 #include <vector>
33 
34 namespace libMesh
35 {
36 
37 // Forward Declarations
38 class Point;
39 class Elem;
40 
41 
42 
43 
44 
52 {
53 public:
54 
59  : ErrorEstimator(),
60  scale_by_n_flux_faces(false),
62  fe_fine(NULL), fe_coarse(NULL) {}
63 
67  virtual ~JumpErrorEstimator() {}
68 
69 
76  virtual void estimate_error (const System& system,
77  ErrorVector& error_per_cell,
78  const NumericVector<Number>* solution_vector = NULL,
79  bool estimate_parent_error = false);
80 
90 
91 protected:
96  void reinit_sides();
97 
102 
107  virtual void initialize(const System& system,
108  ErrorVector& error_per_cell,
109  bool estimate_parent_error);
110 
115  virtual void internal_side_integration() = 0;
116 
122  virtual bool boundary_side_integration() { return false; }
123 
129 
134 
139 
143  unsigned int fine_side;
144 
148  unsigned int var;
149 
154 
159 };
160 
161 
162 } // namespace libMesh
163 
164 #endif // LIBMESH_JUMP_ERROR_ESTIMATOR_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:05 UTC

Hosted By:
SourceForge.net Logo