From: salgado Date: Fri, 11 Sep 2009 17:40:26 +0000 (+0000) Subject: Made the program not crash in debug mode.... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ab1be5c6cecffb122ac762afa09c4079bdba7ff;p=dealii-svn.git Made the program not crash in debug mode.... I forgot to remove one line that I tought I was going to use... git-svn-id: https://svn.dealii.org/trunk@19442 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-35/step-35.cc b/deal.II/examples/step-35/step-35.cc index d4e1ea45c1..8a5352cb67 100644 --- a/deal.II/examples/step-35/step-35.cc +++ b/deal.II/examples/step-35/step-35.cc @@ -106,7 +106,7 @@ namespace RunTimeParameters{ // In the constructor of this class we declare all the parameters. The // details of how this works have been discussed elsewhere, for example in -// step step-19 and step-29. +// step-19 and step-29. Data_Storage::Data_Storage(){ prm.declare_entry( "Method_Form", "rotational", Patterns::Selection( "rotational|standard" ), " Used to select the type of method that we are going to use. " ); @@ -156,11 +156,11 @@ namespace RunTimeParameters{ } - + Data_Storage::~Data_Storage(){} - + void Data_Storage::read_data( const char *filename ){ std::ifstream file( filename ); AssertThrow (file, ExcFileNotOpen( filename )); @@ -177,7 +177,6 @@ namespace RunTimeParameters{ initial_time = prm.get_double( "initial_time" ); final_time = prm.get_double( "final_time" ); Reynolds = prm.get_double( "Reynolds" ); - token = prm.get( "filename" ); } prm.leave_subsection(); @@ -238,7 +237,7 @@ namespace EquationData{ Function( 1, initial_time ), comp(0) {} - + template void MultiComponentFunction::set_component(const unsigned int d ) { @@ -264,14 +263,14 @@ namespace EquationData{ const unsigned int component = 0 ) const; }; - + template Velocity::Velocity( const double initial_time ) : MultiComponentFunction( initial_time ) {} - + template void Velocity::value_list( const std::vector > &points, std::vector &values, @@ -284,7 +283,7 @@ namespace EquationData{ values[i] = Velocity::value( points[i] ); } - + template inline double Velocity::value( const Point &p, const unsigned int ) const @@ -301,10 +300,10 @@ namespace EquationData{ { public: Pressure( const double initial_time = 0.0 ); - + virtual double value( const Point &p, const unsigned int component = 0 ) const; - + virtual void value_list( const std::vector< Point > &points, std::vector &values, const unsigned int component = 0 ) const; @@ -316,7 +315,7 @@ namespace EquationData{ Function( 1, initial_time ) {} - + template inline double Pressure::value( const Point &p, const unsigned int ) const