GRINS-0.8.0
error_estimator_options.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // GRINS - General Reacting Incompressible Navier-Stokes
5 //
6 // Copyright (C) 2014-2017 Paul T. Bauman, Roy H. Stogner
7 // Copyright (C) 2010-2013 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef GRINS_ERROR_ESTIMATOR_OPTIONS_H
26 #define GRINS_ERROR_ESTIMATOR_OPTIONS_H
27 
28 // C++
29 #include <string>
30 
31 // libmMesh forward declarations
32 class GetPot;
33 
34 namespace GRINS
35 {
38  {
39  public:
40 
41  ErrorEstimatorOptions( const GetPot& input );
43 
44  const std::string& estimator_type() const
45  { return _estimator_type; }
46 
47  bool patch_reuse() const
48  { return _patch_reuse; }
49 
50  unsigned char n_adjoint_h_refinements() const
51  { return _n_adjoint_h_refinements; }
52 
53  unsigned char n_adjoint_p_refinements() const
54  { return _n_adjoint_p_refinements; }
55 
57  { return _compute_qoi_error_estimate; }
58 
59  bool estimator_requires_adjoint() const;
60 
61  private:
62 
63  void check_dup_input_style( const GetPot& input ) const;
64 
65  bool is_old_style( const GetPot& input ) const;
66 
67  void parse_old_style(const GetPot& input);
68 
69  void parse_new_style(const GetPot& input);
70 
71  std::string _estimator_type;
73  unsigned char _n_adjoint_h_refinements;
74  unsigned char _n_adjoint_p_refinements;
76 
77  };
78 
79 } // end namespace GRINS
80 
81 #endif // GRINS_ERROR_ESTIMATOR_OPTIONS_H
void parse_new_style(const GetPot &input)
void check_dup_input_style(const GetPot &input) const
const std::string & estimator_type() const
ErrorEstimatorOptions(const GetPot &input)
bool is_old_style(const GetPot &input) const
unsigned char n_adjoint_p_refinements() const
GRINS namespace.
unsigned char n_adjoint_h_refinements() const
Container for ErrorEstimator options.
void parse_old_style(const GetPot &input)

Generated on Tue Dec 19 2017 12:47:28 for GRINS-0.8.0 by  doxygen 1.8.9.1