Driver for RefineableDrivenCavity test problem.
306 MPI_Helpers::init(argc,argv);
330 const unsigned n_element=
problem.mesh_pt()->nelement();
334 bool report_stats=
true;
335 out_element_partition=
problem.distribute(report_stats);
338 std::ofstream output_file;
340 sprintf(
filename,
"out_hp_adaptive_cavity_partition.dat");
342 for (
unsigned e=0;
e<n_element;
e++)
344 output_file << out_element_partition[
e] << std::endl;
348 problem.check_halo_schemes(doc_info);
355 oomph_info <<
"passed: Problem can be solved." << std::endl;
367 problem.doc_solution(doc_info);
372 problem.doc_solution(doc_info);
377 problem.doc_solution(doc_info);
382 problem.doc_solution(doc_info);
387 problem.doc_solution(doc_info);
392 problem.doc_solution(doc_info);
397 problem.doc_solution(doc_info);
408 std::ifstream input_file;
412 const unsigned n_element=
problem.mesh_pt()->nelement();
414 sprintf(
filename,
"hp_adaptive_cavity_partition.dat");
417 for (
unsigned e=0;
e<n_element;
e++)
419 getline(input_file,input_string,
'\n');
420 element_partition[
e]=atoi(input_string.c_str());
424 bool report_stats=
true;
425 problem.distribute(element_partition,mesh_doc_info,report_stats);
432 problem.doc_solution(doc_info);
437 problem.doc_solution(doc_info);
442 problem.doc_solution(doc_info);
447 problem.doc_solution(doc_info);
452 problem.doc_solution(doc_info);
459 for (
unsigned n=0;
n<
problem.mesh_pt()->nnode();
n++)
461 if (
problem.mesh_pt()->node_pt(
n)->is_hanging())
482 oomph_info <<
"There were "<<num_hang<<
" hanging nodes." << endl;
488 problem.doc_solution(doc_info);
494 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