Driver for RefineableDrivenCavity test problem.
335 MPI_Helpers::init(argc,argv);
359 const unsigned n_element=
problem.mesh_pt()->nelement();
363 bool report_stats=
true;
364 out_element_partition=
problem.distribute(report_stats);
367 std::ofstream output_file;
369 sprintf(
filename,
"out_hp_adaptive_cavity_partition.dat");
371 for (
unsigned e=0;
e<n_element;
e++)
373 output_file << out_element_partition[
e] << std::endl;
377 problem.check_halo_schemes(doc_info);
384 oomph_info <<
"passed: Problem can be solved." << std::endl;
396 problem.doc_solution(doc_info);
401 problem.doc_solution(doc_info);
406 problem.doc_solution(doc_info);
411 problem.doc_solution(doc_info);
416 problem.doc_solution(doc_info);
421 problem.doc_solution(doc_info);
426 problem.doc_solution(doc_info);
437 std::ifstream input_file;
441 const unsigned n_element=
problem.mesh_pt()->nelement();
443 sprintf(
filename,
"hp_adaptive_cavity_partition.dat");
446 for (
unsigned e=0;
e<n_element;
e++)
448 getline(input_file,input_string,
'\n');
449 element_partition[
e]=atoi(input_string.c_str());
453 bool report_stats=
true;
454 problem.distribute(element_partition,mesh_doc_info,report_stats);
461 problem.doc_solution(doc_info);
466 problem.doc_solution(doc_info);
471 problem.doc_solution(doc_info);
476 problem.doc_solution(doc_info);
481 problem.doc_solution(doc_info);
485 problem.mesh_pt()->doc_mesh_distribution(mesh_doc_info);
493 for (
unsigned n=0;
n<
problem.mesh_pt()->nnode();
n++)
495 if (
problem.mesh_pt()->node_pt(
n)->is_hanging())
516 oomph_info <<
"There were "<<num_hang<<
" hanging nodes." << endl;
522 problem.doc_solution(doc_info);
528 MPI_Helpers::finalize();
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Definition: mpi/distribution/hanging_node_reconciliation/hp_adaptive_driven_cavity.cc:98
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
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
string filename
Definition: MergeRestartFiles.py:39
int Argc
Number of arguments + 1.
Definition: oomph_utilities.cc:407
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
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