Permalink
Browse files

Run make reindent

This is a big one since this is first time we've done this. Lots of
crap from days with crappy default formats.
  • Loading branch information...
pbauman committed May 1, 2017
1 parent 1d9c5a2 commit e0e18dcb742936f9a9254fd289a24b7ee9334966
Showing 349 changed files with 4,498 additions and 4,498 deletions.
@@ -28,7 +28,7 @@
// Function for getting initial temperature field
libMesh::Real
initial_values( const libMesh::Point& p, const libMesh::Parameters &params,
const std::string& system_name, const std::string& unknown_name );
const std::string& system_name, const std::string& unknown_name );
int main(int argc, char* argv[])
{
@@ -69,7 +69,7 @@ int main(int argc, char* argv[])
libMesh::Real
initial_values( const libMesh::Point&, const libMesh::Parameters &params,
const std::string& , const std::string& unknown_name )
const std::string& , const std::string& unknown_name )
{
libMesh::Real value = 0.0;
@@ -37,9 +37,9 @@ namespace GRINS
DisplacementContinuationSolver( const GetPot& input );
virtual ~DisplacementContinuationSolver();
virtual void initialize( const GetPot& input,
SharedPtr<libMesh::EquationSystems> equation_system,
GRINS::MultiphysicsSystem* system );
virtual void initialize( const GetPot& input,
SharedPtr<libMesh::EquationSystems> equation_system,
GRINS::MultiphysicsSystem* system );
virtual void solve( SolverContext& context );
@@ -81,7 +81,7 @@ namespace GRINS
{
libMesh::Real pressure = _pressure_values[s];
std::cout << "==========================================================" << std::endl
<< " Pressure step " << s << ", pressure = " << pressure << std::endl
<< "==========================================================" << std::endl;
@@ -74,7 +74,7 @@ int main(int argc, char* argv[])
<< std::endl;
libmesh_error();
}
for( unsigned int s = 0; s < n_species; s++ )
{
Y[s] = input( "Conditions/mass_fractions", 0.0, s );
@@ -89,7 +89,7 @@ int main(int argc, char* argv[])
std::ofstream output;
output.open( "omega_dot.dat", std::ios::trunc );
output << "# Species names" << std::endl;
for( unsigned int s = 0; s < n_species; s++ )
{
@@ -101,19 +101,19 @@ int main(int argc, char* argv[])
output.close();
while( T < T1 )
{
{
Antioch::TempCache<libMesh::Real> T_cache(T);
libMesh::Real rho = p0/(R_mix*T);
antioch_kinetics.omega_dot( T_cache, rho, Y, omega_dot );
output.open( "omega_dot.dat", std::ios::app );
output << T << " ";
for( unsigned int i = 0; i < n_species; i++ )
{
output << std::scientific << std::setprecision(16)
output << std::scientific << std::setprecision(16)
<< omega_dot[i] << " ";
}
@@ -57,7 +57,7 @@ int main(int argc, char* argv[])
{
species_list[s] = std::string(argv[s+1]);
}
Antioch::ChemicalMixture<double> chem_mixture( species_list );
Antioch::CEAThermoMixture<double> cea_mixture( chem_mixture );
@@ -99,10 +99,10 @@ int main(int argc, char* argv[])
for( unsigned int s = 0; s < n_species; s++)
{
output << std::scientific << std::setprecision(16)
<< stat_mech_thermo.h_tot( s, T ) - stat_mech_thermo.h_tot( s, 298.15 )
+ stat_mech_thermo.e_0( s ) << " ";
<< stat_mech_thermo.h_tot( s, T ) - stat_mech_thermo.h_tot( s, 298.15 )
+ stat_mech_thermo.e_0( s ) << " ";
}
for( unsigned int s = 0; s < n_species; s++)
{
output << std::scientific << std::setprecision(16)
@@ -63,7 +63,7 @@ int do_transport_eval( const GetPot& input )
<< std::endl;
libmesh_error();
}
for( unsigned int s = 0; s < n_species; s++ )
{
Y[s] = input( "Conditions/mass_fractions", 0.0, s );
@@ -75,7 +75,7 @@ int do_transport_eval( const GetPot& input )
std::ofstream output;
output.open( "transport.dat", std::ios::trunc );
output << "# Species names" << std::endl;
for( unsigned int s = 0; s < n_species; s++ )
{
@@ -87,7 +87,7 @@ int do_transport_eval( const GetPot& input )
output.close();
while( T < T1 )
{
{
output.open( "transport.dat", std::ios::app );
output << std::scientific << std::setprecision(16);
output << T << " ";
@@ -180,7 +180,7 @@ int main(int argc, char* argv[])
{
std::cerr << "Error: Unknown thermo_model "
<< thermo_model << "!" << std::endl;
return_flag = 1;
return_flag = 1;
}
}
else
@@ -189,7 +189,7 @@ int main(int argc, char* argv[])
<< mixing_model << "!" << std::endl;
return_flag = 1;
}
return return_flag;
}
@@ -61,7 +61,7 @@ int main(int argc, char* argv[])
libMesh::Real T0 = input( "Conditions/T0", 300.0 );
libMesh::Real T1 = input( "Conditions/T1", 300.0 );
libMesh::Real T_inc = input( "Conditions/T_increment", 100.0 );
libMesh::Real rho = input( "Conditions/density", 1.0e-3 );
const unsigned int n_species = mixture.n_species();
@@ -80,7 +80,7 @@ int main(int argc, char* argv[])
std::ofstream output;
output.open( "omega_dot.dat", std::ios::trunc );
output << "# Species names" << std::endl;
for( unsigned int s = 0; s < n_species; s++ )
{
@@ -100,7 +100,7 @@ int main(int argc, char* argv[])
for( unsigned int i = 0; i < n_species; i++ )
{
output << std::scientific << std::setprecision(16)
output << std::scientific << std::setprecision(16)
<< omega_dot[i] << " ";
}
@@ -41,14 +41,14 @@ namespace GRINS
virtual libMesh::Real operator()( const libMesh::Real T ) const;
virtual libMesh::Real dT( const libMesh::Real T ) const;
virtual void set_params( const std::vector<libMesh::Real>& params );
//! Creates a new copy of the current class.
/*! A raw pointer is returned and it is assumed the user will take ownership
and worry about memory management. */
and worry about memory management. */
virtual CatalycityBase* clone() const;
protected:
libMesh::Real _gamma0;
@@ -52,11 +52,11 @@ namespace GRINS
//! Manages runtime construction of Dirichlet boundary conditions
/*! This will parse the input for the request Dirichlet boundary
conditions and manage their construction. Actual construction of
the DirichletBoundary objects is delegated to factory
classes. This builder classes merely manages tasks around the
factories as needed. To add new Dirichlet boundary conditions,
the user should instantiate an appropriate factory sub class. */
conditions and manage their construction. Actual construction of
the DirichletBoundary objects is delegated to factory
classes. This builder classes merely manages tasks around the
factories as needed. To add new Dirichlet boundary conditions,
the user should instantiate an appropriate factory sub class. */
class BCBuilder
{
public:
@@ -63,9 +63,9 @@ namespace GRINS
//! Sets the current section of the input file
/*! The section here corresponds to the section in the GetPot
input file, e.g. if we're wanting to parse functions from
[Variables/SideWall/Velocity/u], then section will be
"Variables/SideWall/Velocity". */
input file, e.g. if we're wanting to parse functions from
[Variables/SideWall/Velocity/u], then section will be
"Variables/SideWall/Velocity". */
static void set_section( const std::string& section )
{ _section = section; }
@@ -75,9 +75,9 @@ namespace GRINS
//! Ensure that there is only one expression for the [Section/var_name] variable
/*! When parsing expressions to give to Parsed(FEM)Function, this function checks
that there's only one expression for the given [Section/var_name] in the input
file. This also helps protect against white space in the expression, which we
don't currently support. */
that there's only one expression for the given [Section/var_name] in the input
file. This also helps protect against white space in the expression, which we
don't currently support. */
void check_for_multiple_expressions( const GetPot& input,const std::string& section,
const std::string& var_name ) const;
@@ -92,17 +92,17 @@ namespace GRINS
virtual void reset_state();
/*! We store only a raw pointer here because we *can't* make a copy.
Otherwise, bad things will happen. We are not taking
ownership of this, so we need to *not* delete this.*/
Otherwise, bad things will happen. We are not taking
ownership of this, so we need to *not* delete this.*/
static MultiphysicsSystem* _system;
//! BoundaryID for constructing a particular boundary condition
static const std::set<BoundaryID>* _bc_ids;
//! The FEVariablesBase class associated with the boundary condition being built
/*! We only build one boundary condition at a time, so this pointer will
change with each boundary condition construction. We store a raw pointer
here because we don't own this. Do not delete!*/
change with each boundary condition construction. We store a raw pointer
here because we don't own this. Do not delete!*/
static const FEVariablesBase* _fe_var;
static std::string _section;
@@ -29,9 +29,9 @@ namespace GRINS
{
//! Initialize all Factory objects related to boundary conditions
/*! To avoid symbol stripping from static linking, we use this
class to initialize/register the boundary condition factory objects.
class to initialize/register the boundary condition factory objects.
Relevant discussion: http://stackoverflow.com/questions/5202142/static-variable-initialization-over-a-library*/
Relevant discussion: http://stackoverflow.com/questions/5202142/static-variable-initialization-over-a-library*/
class BoundaryConditionFactoryInitializer
{
public:
@@ -42,7 +42,7 @@ namespace GRINS
//! Names of boundaries to correspond with bc_ids
/*! These will be the subsections of bc_section() that are parsed
for the boundary condition types and values for each variable */
for the boundary condition types and values for each variable */
static std::string bc_id_name_map_var()
{ return BoundaryConditionNames::bc_section()+"/bc_id_name_map"; }
@@ -57,7 +57,7 @@ namespace GRINS
//! Default boundary name prefix if bc_id_name_map/bc_ids are not used
/*! If the user opts to not provide bc_id_name_map/bc_ids, then we'll
parse for this prefix appened with the boundary id from the mesh. */
parse for this prefix appened with the boundary id from the mesh. */
static std::string bc_name_prefix_default()
{ return "Boundary"; }
@@ -44,14 +44,14 @@ namespace GRINS
virtual libMesh::Real operator()( const libMesh::Real T ) const =0;
virtual libMesh::Real dT( const libMesh::Real T ) const =0;
virtual void set_params( const std::vector<libMesh::Real>& params ) =0;
//! Creates a new copy of the current class.
/*! A raw pointer is returned and it is assumed the user will take ownership
and worry about memory management. */
and worry about memory management. */
virtual CatalycityBase* clone() const = 0;
};
} // end namespace GRINS
@@ -78,7 +78,7 @@ namespace GRINS
libMesh::Real omega_dot( const libMesh::Real rho_s, const libMesh::Real T ) const;
libMesh::Real domega_dot_dws( const libMesh::Real rho_s, const libMesh::Real w_s,
const libMesh::Real T, const libMesh::Real R ) const;
const libMesh::Real T, const libMesh::Real R ) const;
libMesh::Real domega_dot_dT( const libMesh::Real rho_s, const libMesh::Real T ) const;
@@ -113,9 +113,9 @@ namespace GRINS
//! Thermodynamic pressure
/*! Currently, we assume that the thermodynamic pressure is constant. This
is not true in cavity type systems.
is not true in cavity type systems.
\todo make const */
\todo make const */
libMesh::Real _p0;
};
@@ -40,7 +40,7 @@ namespace GRINS
//! Factory helper class for building catalytic wall Neumann boundary conditions
/*! Note for catalytic walls, we're currently assuming that both SpeciesMassFractions
and Temperature FEVariables are in the system. */
and Temperature FEVariables are in the system. */
template<typename ImplType>
class CatalyticWallNeumannBCFactoryCommon
{
@@ -41,14 +41,14 @@ namespace GRINS
virtual libMesh::Real operator()( const libMesh::Real T ) const;
virtual libMesh::Real dT( const libMesh::Real T ) const;
virtual void set_params( const std::vector<libMesh::Real>& params );
//! Creates a new copy of the current class.
/*! A raw pointer is returned and it is assumed the user will take ownership
and worry about memory management. */
and worry about memory management. */
virtual CatalycityBase* clone() const;
protected:
libMesh::Real _gamma;
Oops, something went wrong.

0 comments on commit e0e18dc

Please sign in to comment.