From: Wolfgang Bangerth Date: Sun, 13 Feb 2011 23:10:30 +0000 (+0000) Subject: Make condition work also if X-Git-Tag: v8.0.0~4345 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c46844e1110da20ecc6d29d78da0d8c78cf80a5;p=dealii.git Make condition work also if parameters.graphical_output_interval==1. Fix possible range for this parameter. git-svn-id: https://svn.dealii.org/trunk@23353 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index 22f48f9a1b..d48e639048 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -999,7 +999,7 @@ declare_parameters (ParameterHandler &prm) "The number of adaptive refinement steps performed after " "initial global refinement."); prm.declare_entry ("Time steps between mesh refinement", "10", - Patterns::Integer (10), + Patterns::Integer (1), "The number of time steps after which the mesh is to be " "adapted based on computed error indicators."); prm.declare_entry ("Generate graphical output", "false", @@ -3601,7 +3601,7 @@ void BoussinesqFlowProblem::run (const std::string parameter_filename) // do-while loop if ((parameters.generate_graphical_output == true) && - (timestep_number % parameters.graphical_output_interval != 1)) + !((timestep_number-1) % parameters.graphical_output_interval == 0)) output_results (); }