GRINS-0.8.0
catalycity_factory_old_style_base.C
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 // This class
27 
28 namespace GRINS
29 {
30  libMesh::UniquePtr<CatalycityBase> CatalycityFactoryOldStyleBase::build_catalycity( const GetPot& input,
31  const std::string& section )
32  {
33  // State of _reactant_str, _bc_id_str verified in check_state() call in create()
34  return this->build_catalycity_old_style( input, section, _reactant_str, _bc_id_str );
35  }
36 
38  {
40 
41  if( _reactant_str == std::string("DIE!") )
42  libmesh_error_msg("ERROR: must call set_reactant() before building Catalycity!");
43 
44  if( _bc_id_str == std::string("DIE!") )
45  libmesh_error_msg("ERROR: must call set_bc_id() before building Catalycity!");
46  }
47 
49  {
51 
52  _reactant_str = std::string("DIE!");
53  _bc_id_str = std::string("DIE!");
54  }
55 
56  // Definition of static members
57  std::string CatalycityFactoryOldStyleBase::_reactant_str = std::string("DIE!");
58  std::string CatalycityFactoryOldStyleBase::_bc_id_str = std::string("DIE!");
59 
60 } // end namespace GRINS
virtual libMesh::UniquePtr< CatalycityBase > build_catalycity_old_style(const GetPot &input, const std::string &section, const std::string &reactant_str, const std::string &bc_id_string)=0
GRINS namespace.
virtual void check_state() const
Helper function to reduce code duplication.
virtual void check_state() const
Helper function to reduce code duplication.
virtual void reset_state()
Helper function to reduce code duplication.
virtual libMesh::UniquePtr< CatalycityBase > build_catalycity(const GetPot &input, const std::string &section)
virtual void reset_state()
Helper function to reduce code duplication.

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