Driver code for 2D Poisson problem.
344 n_refine=atoi(argv[1]);
349 "Wrong number of input arguments. The options are: \n";
351 "No args: Default number of refinements\n";
353 "One arg: Required number of refinements\n";
364 clock_t t_start = clock();
373 clock_t t_end = clock();
374 double total_time=
double(t_end-t_start)/CLOCKS_PER_SEC;
376 cout <<
"======================================================= " << std::endl;
377 cout <<
"Total time for Problem setup [sec]: " << total_time << std::endl;
378 cout <<
"======================================================= " << std::endl;
401 problem.set_problem_is_nonlinear();
404 for (
unsigned istep=0;istep<nstep;istep++)
408 clock_t t_start = clock();
410 if (
problem.is_problem_nonlinear())
412 cout << std::endl << std::endl;
413 cout <<
"============================ " << std::endl;
414 cout <<
"Solving as nonlinear problem " << std::endl;
415 cout <<
"============================ " << std::endl;
416 cout << std::endl << std::endl;
420 cout << std::endl << std::endl;
421 cout <<
"============================ " << std::endl;
422 cout <<
"Solving as linear problem " << std::endl;
423 cout <<
"============================ " << std::endl;
424 cout << std::endl << std::endl;
432 clock_t t_end = clock();
433 double total_time=
double(t_end-t_start)/CLOCKS_PER_SEC;
434 cout <<
"======================================================= " << std::endl;
435 cout <<
"Total time for Newton solve [sec]: " << total_time << std::endl;
436 cout <<
"======================================================= " << std::endl;
439 problem.doc_solution(doc_info);
445 problem.set_problem_is_linear();
451 cout << std::endl << std::endl;
452 cout <<
"Execution is paused while problem is in core" << std::endl;
453 pause(
"Have a look at the memory usage now");
Micky mouse Poisson problem.
Definition: HypreSolver_test.cc:81
Definition: oomph_utilities.h:499
void set_directory(const std::string &directory)
Definition: oomph_utilities.cc:298
unsigned & number()
Number used (e.g.) for labeling output files.
Definition: oomph_utilities.h:554
Definition: oomph_definitions.h:222
double TanPhi
Parameter for angle Phi of "step".
Definition: HypreSolver_test.cc:51
void source_function(const Vector< double > &x, double &source)
Source function required to make the solution above an exact solution.
Definition: HypreSolver_test.cc:60
double Alpha
Parameter for steepness of step.
Definition: extrude_with_macro_element_representation.cc:185
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
void pause(std::string message)
Pause and display message.
Definition: oomph_utilities.cc:1265
#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