<commit_before>// Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc. 51 Franklin Street, Fifth Floor,
// Boston, MA  02110-1301  USA
//
//-----------------------------------------------------------------------el-


// This class
#include "grins/spalart_allmaras_viscosity.h"
#include "grins/constant_viscosity.h"
#include "grins/parsed_viscosity.h"

//GRINS
#include "grins/grins_physics_names.h"
#include "grins/turbulent_viscosity_macro.h"

// libMesh
#include "libmesh/getpot.h"
#include "libmesh/parsed_function.h"

namespace GRINS
{
  template<class Mu>
  SpalartAllmarasViscosity<Mu>::SpalartAllmarasViscosity( const GetPot& input ):
    ParameterUser("SpalartAllmarasViscosity"),
    _turbulence_vars(input, spalart_allmaras),
    _mu(input)
  {
    if( !input.have_variable("Materials/Viscosity/mu") )
	{
	  std::cerr<<"No viscosity has been specified."<<std::endl;
	  
	  libmesh_error();
	}
    return;
  }
    
  template<class Mu>
  void SpalartAllmarasViscosity<Mu>::init( libMesh::FEMSystem* system )
  {    
    this->_turbulence_vars.init(system);
  }
    
  template<class Mu><commit_msg>Fix variable order warning<commit_after>// Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc. 51 Franklin Street, Fifth Floor,
// Boston, MA  02110-1301  USA
//
//-----------------------------------------------------------------------el-


// This class
#include "grins/spalart_allmaras_viscosity.h"
#include "grins/constant_viscosity.h"
#include "grins/parsed_viscosity.h"

//GRINS
#include "grins/grins_physics_names.h"
#include "grins/turbulent_viscosity_macro.h"

// libMesh
#include "libmesh/getpot.h"
#include "libmesh/parsed_function.h"

namespace GRINS
{
  template<class Mu>
  SpalartAllmarasViscosity<Mu>::SpalartAllmarasViscosity( const GetPot& input ):
    ParameterUser("SpalartAllmarasViscosity"),
    _mu(input),
    _turbulence_vars(input, spalart_allmaras)
  {
    if( !input.have_variable("Materials/Viscosity/mu") )
	{
	  std::cerr<<"No viscosity has been specified."<<std::endl;
	  
	  libmesh_error();
	}
    return;
  }
    
  template<class Mu>
  void SpalartAllmarasViscosity<Mu>::init( libMesh::FEMSystem* system )
  {    
    this->_turbulence_vars.init(system);
  }
    
  template<class Mu>
{'fraction_non_alphanumeric': 0.1481962950926227, 'fraction_numerical': 0.007149821254468639, 'mean_word_length': 3.263157894736842, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4628', 'n_tokens_mistral': 995, 'n_tokens_neox': 960, 'n_words': 268}