Driver code for 2D Poisson problem.
371 n_refine=atoi(argv[1]);
376 "Wrong number of input arguments. The options are: \n";
378 "No args: Default number of refinements\n";
380 "One arg: Required number of refinements\n";
388 cout <<
sizeof(
Shape) << std::endl;
389 cout <<
sizeof(
DShape) << std::endl;
414 clock_t t_start = clock();
423 clock_t t_end = clock();
424 double total_time=
double(t_end-t_start)/CLOCKS_PER_SEC;
426 cout <<
"======================================================= " << std::endl;
427 cout <<
"Total time for Problem setup [sec]: " << total_time << std::endl;
428 cout <<
"======================================================= " << std::endl;
441 clock_t t_start = clock();
451 clock_t t_end = clock();
452 double total_time=
double(t_end-t_start)/CLOCKS_PER_SEC;
454 cout <<
"================================================================= "
456 cout <<
"Total time for Problem setup with storable shape fcts [sec]: "
457 << total_time << std::endl;
458 cout <<
"================================================================= "
464 cout <<
"================================================================= "
466 cout <<
"No shape functions actually stored "
468 cout <<
"================================================================= "
469 << std::endl << std::endl;
478 unsigned nelem=
problem.mesh_pt()->nelement();
479 for (
unsigned e=0;
e<nelem;
e++)
481 dynamic_cast<ELEMENT*
>(
problem.mesh_pt()->element_pt(
e))
482 ->pre_compute_dshape_eulerian_at_knots();
487 total_time=
double(t_end-t_start)/CLOCKS_PER_SEC;
489 cout <<
"================================================================= "
491 cout <<
"Total time for pre-calculation of shape functions and derivatives "
493 cout << total_time <<
" sec" << std::endl;
494 cout <<
"================================================================= "
504 for (
unsigned e=1;
e<nelem;
e++)
506 dynamic_cast<ELEMENT*
>(
problem.mesh_pt()->element_pt(
e))
507 ->set_dshape_eulerian_stored_from_element(
508 dynamic_cast<ELEMENT*
>(
problem.mesh_pt()->element_pt(0)));
512 total_time=
double(t_end-t_start)/CLOCKS_PER_SEC;
514 cout <<
"================================================================= "
516 cout <<
"Total time for assignment of shape functions and derivatives from "
517 << std::endl <<
"the first element: " << total_time <<
" sec" << std::endl;
518 cout <<
"================================================================= "
Array< double, 1, 3 > e(1./3., 0.5, 2.)
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
Definition: oomph_definitions.h:222
Definition: stored_shape_function_elements.h:556
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
#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