Driver for RefineableDrivenCavity test problem.
316 MPI_Helpers::init(argc,argv);
328 unsigned max_adapt=3;
343 const unsigned n_element=
problem.mesh_pt()->nelement();
347 bool report_stats=
false;
348 out_element_partition=
problem.distribute(report_stats);
351 std::ofstream output_file;
353 sprintf(
filename,
"out_adaptive_cavity_1_partition.dat");
355 for (
unsigned e=0;
e<n_element;
e++)
357 output_file << out_element_partition[
e] << std::endl;
361 problem.check_halo_schemes(doc_info);
366 problem.newton_solve(max_adapt);
369 problem.doc_solution(doc_info);
384 const unsigned n_element=
problem.mesh_pt()->nelement();
388 std::ifstream input_file;
390 sprintf(
filename,
"adaptive_cavity_1_partition.dat");
393 for (
unsigned e=0;
e<n_element;
e++)
395 getline(input_file,input_string,
'\n');
396 element_partition[
e]=atoi(input_string.c_str());
400 problem.distribute(element_partition);
405 problem.newton_solve(max_adapt);
408 problem.doc_solution(doc_info);
428 problem.check_halo_schemes(doc_info);
432 problem.newton_solve(max_adapt);
438 problem.doc_solution(doc_info);
448 std::ifstream input_file;
452 const unsigned n_element=
problem.mesh_pt()->nelement();
454 sprintf(
filename,
"adaptive_cavity_2_partition.dat");
457 for (
unsigned e=0;
e<n_element;
e++)
459 getline(input_file,input_string,
'\n');
460 element_partition[
e]=atoi(input_string.c_str());
464 problem.distribute(element_partition);
469 problem.newton_solve(max_adapt);
475 problem.doc_solution(doc_info);
484 MPI_Helpers::finalize();
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Definition: demo_drivers/mpi/distribution/adaptive_driven_cavity/adaptive_driven_cavity.cc:59
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
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
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213