uniform_refinement_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_UNIFORM_REFINEMENT_ESTIMATOR_H
21 #define LIBMESH_UNIFORM_REFINEMENT_ESTIMATOR_H
22 
23 // Local Includes
25 #include "libmesh/libmesh.h"
26 
27 // C++ includes
28 #include <cstddef>
29 #include <vector>
30 
31 #ifdef LIBMESH_ENABLE_AMR
32 
33 namespace libMesh
34 {
35 
45 {
46 public:
47 
55  { error_norm = H1; }
56 
61 
62 
79  virtual void estimate_error (const System& system,
80  ErrorVector& error_per_cell,
81  const NumericVector<Number>* solution_vector = NULL,
82  bool estimate_parent_error = false);
83 
91  virtual void estimate_errors (const EquationSystems& equation_systems,
92  ErrorVector& error_per_cell,
93  const std::map<const System*, SystemNorm>& error_norms,
94  const std::map<const System*, const NumericVector<Number>* >* solution_vectors = NULL,
95  bool estimate_parent_error = false);
96 
105  virtual void estimate_errors (const EquationSystems& equation_systems,
106  ErrorMap& errors_per_cell,
107  const std::map<const System*, const NumericVector<Number>* >* solution_vectors = NULL,
108  bool estimate_parent_error = false);
109 
113  unsigned char number_h_refinements;
114 
118  unsigned char number_p_refinements;
119 
120 protected:
125  virtual void _estimate_error (const EquationSystems *equation_systems,
126  const System* system,
127  ErrorVector* error_per_cell,
128  std::map<std::pair<const System*, unsigned int>, ErrorVector*>* errors_per_cell,
129  const std::map<const System*, SystemNorm >* error_norms,
130  const std::map<const System*, const NumericVector<Number>* >* solution_vectors = NULL,
131  bool estimate_parent_error = false);
132 };
133 
134 } // namespace libMesh
135 
136 #endif // #ifdef LIBMESH_ENABLE_AMR
137 
138 #endif // LIBMESH_UNIFORM_REFINEMENT_ESTIMATOR_H

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

Hosted By:
SourceForge.net Logo