Driver code.
518 MPI_Helpers::init(argc,argv);
544 problem.set_default_partition_in_load_balance();
552 mesh_doc_info.
number()=38;
554 std::ifstream input_file;
555 std::ofstream output_file;
559 unsigned n_partition=
problem.mesh_pt()->nelement();
563 sprintf(
filename,
"presc_displ_lagr_mult_partition.dat");
566 for (
unsigned e=0;
e<n_partition;
e++)
568 getline(input_file,input_string,
'\n');
569 element_partition[
e]=atoi(input_string.c_str());
573 bool report_stats=
false;
574 problem.distribute(element_partition,mesh_doc_info,report_stats);
575 problem.check_halo_schemes(mesh_doc_info);
583 unsigned max_adapt=1;
587 for(
unsigned i=0;
i<nstep;
i++)
594 problem.newton_solve(max_adapt);
604 problem.solid_mesh_pt()->set_lagrangian_nodal_coordinates();
628 MPI_Helpers::finalize();
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Definition: mpi/distribution/prescribed_displ_lagr_mult/prescribed_displ_lagr_mult.cc:159
double & ampl()
Access to amplitude.
Definition: heated_linear_solid_contact_with_gravity.cc:2066
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
WarpedLine Boundary_geom_object(0.0)
GeomObject specifying the shape of the boundary: Initially it's flat.
string filename
Definition: MergeRestartFiles.py:39
bool command_line_flag_has_been_set(const std::string &flag)
Definition: oomph_utilities.cc:501
void specify_command_line_flag(const std::string &command_line_flag, const std::string &doc)
Specify possible argument-free command line flag.
Definition: oomph_utilities.cc:451
void parse_and_assign(int argc, char *argv[], const bool &throw_on_unrecognised_args)
Definition: oomph_utilities.cc:760
void doc_specified_flags()
Document specified command line flags.
Definition: oomph_utilities.cc:610
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
OomphInfo oomph_info
Definition: oomph_definitions.cc:319
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213