Demonstrate how to solve Poisson problem using parallel.
1332 #ifdef OOMPH_HAS_MPI
1333 MPI_Helpers::init(argc,argv);
1337 const unsigned my_rank = MPI_Helpers::communicator_pt()->my_rank();
1357 #ifdef OOMPH_HAS_CGAL
1422 #ifdef OOMPH_HAS_CGAL
1427 UseCGALSamplePointContainer;
1433 std::ostringstream error_message;
1435 <<
"Can only choose one of --non_ref_bin, --ref_bin or --cgal!";
1451 char trace_filename[100];
1452 sprintf(trace_filename,
"%s/trace_proc%i.dat",
1456 ofstream trace_file;
1457 trace_file.open(trace_filename);
1460 problem.doc_solution(doc_info, trace_file);
1467 problem.mesh_pt()->disable_automatic_creation_of_vertices_on_boundaries();
1470 problem.mesh_pt()->nbin_x_for_area_transfer() = 100;
1471 problem.mesh_pt()->nbin_y_for_area_transfer() = 100;
1473 #ifdef OOMPH_HAS_MPI
1481 problem.read_custom_distribution_from_file(input_distribution);
1483 distributed_elements =
problem.distribute(input_distribution);
1488 distributed_elements =
problem.distribute();
1495 char file_initial_distributed_mesh[100];
1498 problem.mesh_pt()->disable_output_of_halo_elements();
1499 sprintf(file_initial_distributed_mesh,
1500 "%s/output_initial_distributed_mesh_%i.dat",
1503 problem.mesh_pt()->output(file_initial_distributed_mesh, 2);
1510 problem.doc_solution(doc_info, trace_file);
1523 problem.doc_solution(doc_info, trace_file);
1531 #ifdef OOMPH_HAS_MPI
1532 MPI_Helpers::finalize();
Micky mouse Poisson problem.
Definition: HypreSolver_test.cc:81
Definition: oomph_utilities.h:499
std::string directory() const
Output directory.
Definition: oomph_utilities.h:524
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
void get_source(const Vector< double > &x, double &source)
Source function to make it an exact solution.
Definition: extrude_with_macro_element_representation.cc:224
double Min_permitted_error
Definition: two_d_parallel_unstructured_adaptive_poisson.cc:95
double Min_element_size
Definition: two_d_parallel_unstructured_adaptive_poisson.cc:97
double Max_element_size
Definition: two_d_parallel_unstructured_adaptive_poisson.cc:96
double Element_size
Definition: two_d_parallel_unstructured_adaptive_poisson.cc:92
std::string Folder_distribution_file
Definition: two_d_parallel_unstructured_adaptive_poisson.cc:105
double Max_permitted_error
Definition: two_d_parallel_unstructured_adaptive_poisson.cc:94
unsigned Load_balance
Definition: two_d_parallel_unstructured_adaptive_poisson.cc:99
unsigned Domain_configuration
Definition: two_d_parallel_unstructured_adaptive_poisson.cc:91
unsigned Max_adapt
Definition: two_d_parallel_unstructured_adaptive_poisson.cc:93
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
bool Doc_comprehensive_timings
Definition: oomph_definitions.cc:49
bool Bypass_all_memory_usage_monitoring
Definition: oomph_utilities.cc:1390
unsigned Default_sample_point_container_version
Default sample point container type.
Definition: mesh_as_geometric_object.cc:58
@ UseRefineableBinArray
Definition: sample_point_parameters.h:41
@ UseNonRefineableBinArray
Definition: sample_point_parameters.h:42
#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