Driver code for 2D Boussinesq convection problem with adaptivity.
499 MPI_Helpers::init(argc,argv);
506 std::ofstream output_stream;
508 sprintf(
filename,
"OUTPUT.%i",MPI_Helpers::communicator_pt()->my_rank());
511 OomphLibWarning::set_stream_pt(&output_stream);
512 OomphLibError::set_stream_pt(&output_stream);
541 bool report_stats=
true;
547 problem.distribute(mesh_doc_info,report_stats);
552 unsigned n_element=
problem.mesh_pt()->nelement();
555 for (
unsigned e=0;
e<n_element;
e++)
558 unsigned target_part=0;
559 if ( (
e<
unsigned(0.25*
double(n_element))) ||
560 ( (
e>
unsigned(0.5*
double(n_element))) &&
561 (
e<
unsigned(0.75*
double(n_element))) ) )
565 element_partition[
e]=target_part;
567 problem.distribute(element_partition,mesh_doc_info,report_stats);
585 problem.disable_imperfection();
595 problem.prune_halo_elements_and_nodes();
603 MPI_Helpers::finalize();
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Definition: mpi/multi_domain/boussinesq_convection/multi_domain_ref_b_convection.cc:80
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
std::ostream *& stream_pt()
Access function for the stream pointer.
Definition: oomph_definitions.h:464
OutputModifier *& output_modifier_pt()
Access function for the output modifier pointer.
Definition: oomph_definitions.h:476
Definition: multi_domain_boussinesq_elements.h:378
Definition: multi_domain_boussinesq_elements.h:66
Definition: refineable_advection_diffusion_elements.h:355
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
Vector< double > Direction_of_gravity(2)
Gravity vector.
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
OutputModifier default_output_modifier
Single global instatiation of the default output modifier.
Definition: oomph_definitions.cc:325
OomphInfo oomph_info
Definition: oomph_definitions.cc:319
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213