38 using namespace CommandLineArgs;
44 double tmax = 99999.0;
52 "Adaptive time step tolerance (default 0 = fixed step)");
54 double dt_initial = 1
e-5;
56 "Initial dt for adaptive time step selection.");
80 problem.Disable_mass_matrix_solver_optimisations =
true;
87 mesh_pt.push_back(
new Mesh);
88 if(element_type ==
"normal")
90 mesh_pt[0]->add_element_pt(
new ODEElement(time_stepper_pt,
problem.Exact_solution_pt));
92 else if(element_type ==
"imr-element")
104 problem.Doc_info.set_directory(outdir);
120 && (
problem.N_steps_taken < max_step))
126 <<
"Time step " <<
problem.N_steps_taken
127 <<
", time = " <<
problem.time()
128 <<
", dt = " << dt << std::endl
129 <<
"=============================================" << std::endl
133 dt =
problem.smart_time_step(dt, tol);
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Definition: ode_element_for_imr.h:40
Element for integrating an initial value ODE.
Definition: ode_elements.h:41
Definition: ode_problem.h:57
Definition: oomph_definitions.h:222
Definition: timesteppers.h:231
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
void specify_command_line_flag(const std::string &command_line_flag, const std::string &doc)
Specify possible argument-free command line flag.
Definition: oomph_utilities.cc:451
void doc_all_flags(std::ostream &outstream)
Document the values of all flags (specified or not).
Definition: oomph_utilities.cc:562
void parse_and_assign(int argc, char *argv[], const bool &throw_on_unrecognised_args)
Definition: oomph_utilities.cc:760
TimeStepper * time_stepper_factory(const std::string &ts_name)
Definition: ode_problem.h:250
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
SolutionFunctorBase * exact_solutions_factory(const std::string &exact_name)
Definition: ode_example_functions.h:255
OomphInfo oomph_info
Definition: oomph_definitions.cc:319
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
#define OOMPH_CURRENT_FUNCTION
Definition: oomph_definitions.h:86
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213