608 MPI_Helpers::init(argc,argv);
612 bool report_stats=
true;
613 mesh_doc_info.
number()=10;
619 bool incompress=
false;
626 for (
unsigned i=0;
i<2;
i++)
646 std::ifstream input_file;
647 std::ofstream output_file;
651 unsigned n_partition=
problem.mesh_pt()->nelement();
653 sprintf(
filename,
"airy_cantilever_%i_partition.dat",0+
i*ncase);
656 for (
unsigned e=0;
e<n_partition;
e++)
658 getline(input_file,input_string,
'\n');
659 element_partition[
e]=atoi(input_string.c_str());
662 problem.distribute(element_partition,mesh_doc_info,report_stats);
664 problem.check_halo_schemes(mesh_doc_info);
679 std::ifstream input_file;
680 std::ofstream output_file;
684 unsigned n_partition=
problem.mesh_pt()->nelement();
686 sprintf(
filename,
"airy_cantilever_%i_partition.dat",0+
i*ncase);
689 for (
unsigned e=0;
e<n_partition;
e++)
691 getline(input_file,input_string,
'\n');
692 element_partition[
e]=atoi(input_string.c_str());
695 problem.distribute(element_partition,mesh_doc_info,report_stats);
697 problem.check_halo_schemes(mesh_doc_info);
716 std::ifstream input_file;
717 std::ofstream output_file;
721 unsigned n_partition=
problem.mesh_pt()->nelement();
723 sprintf(
filename,
"airy_cantilever_%i_partition.dat",1+
i*ncase);
726 for (
unsigned e=0;
e<n_partition;
e++)
728 getline(input_file,input_string,
'\n');
729 element_partition[
e]=atoi(input_string.c_str());
732 problem.distribute(element_partition,mesh_doc_info,report_stats);
734 problem.check_halo_schemes(mesh_doc_info);
749 std::ifstream input_file;
750 std::ofstream output_file;
754 unsigned n_partition=
problem.mesh_pt()->nelement();
756 sprintf(
filename,
"airy_cantilever_%i_partition.dat",1+
i*ncase);
759 for (
unsigned e=0;
e<n_partition;
e++)
761 getline(input_file,input_string,
'\n');
762 element_partition[
e]=atoi(input_string.c_str());
765 problem.distribute(element_partition,mesh_doc_info,report_stats);
767 problem.check_halo_schemes(mesh_doc_info);
784 std::ifstream input_file;
785 std::ofstream output_file;
789 unsigned n_partition=
problem.mesh_pt()->nelement();
791 sprintf(
filename,
"airy_cantilever_%i_partition.dat",2+
i*ncase);
794 for (
unsigned e=0;
e<n_partition;
e++)
796 getline(input_file,input_string,
'\n');
797 element_partition[
e]=atoi(input_string.c_str());
800 problem.distribute(element_partition,mesh_doc_info,report_stats);
802 problem.check_halo_schemes(mesh_doc_info);
816 std::ifstream input_file;
817 std::ofstream output_file;
821 unsigned n_partition=
problem.mesh_pt()->nelement();
823 sprintf(
filename,
"airy_cantilever_%i_partition.dat",2+
i*ncase);
826 for (
unsigned e=0;
e<n_partition;
e++)
828 getline(input_file,input_string,
'\n');
829 element_partition[
e]=atoi(input_string.c_str());
832 problem.distribute(element_partition,mesh_doc_info,report_stats);
834 problem.check_halo_schemes(mesh_doc_info);
872 std::ifstream input_file;
873 std::ofstream output_file;
877 unsigned n_partition=
problem.mesh_pt()->nelement();
879 sprintf(
filename,
"airy_cantilever_%i_partition.dat",3+
i*ncase);
882 for (
unsigned e=0;
e<n_partition;
e++)
884 getline(input_file,input_string,
'\n');
885 element_partition[
e]=atoi(input_string.c_str());
888 problem.distribute(element_partition,mesh_doc_info,report_stats);
890 problem.check_halo_schemes(mesh_doc_info);
905 std::ifstream input_file;
906 std::ofstream output_file;
910 unsigned n_partition=
problem.mesh_pt()->nelement();
912 sprintf(
filename,
"airy_cantilever_%i_partition.dat",3+
i*ncase);
915 for (
unsigned e=0;
e<n_partition;
e++)
917 getline(input_file,input_string,
'\n');
918 element_partition[
e]=atoi(input_string.c_str());
921 problem.distribute(element_partition,mesh_doc_info,report_stats);
923 problem.check_halo_schemes(mesh_doc_info);
942 std::ifstream input_file;
943 std::ofstream output_file;
947 unsigned n_partition=
problem.mesh_pt()->nelement();
949 sprintf(
filename,
"airy_cantilever_%i_partition.dat",4+
i*ncase);
952 for (
unsigned e=0;
e<n_partition;
e++)
954 getline(input_file,input_string,
'\n');
955 element_partition[
e]=atoi(input_string.c_str());
958 problem.distribute(element_partition,mesh_doc_info,report_stats);
960 problem.check_halo_schemes(mesh_doc_info);
975 std::ifstream input_file;
976 std::ofstream output_file;
980 unsigned n_partition=
problem.mesh_pt()->nelement();
982 sprintf(
filename,
"airy_cantilever_%i_partition.dat",4+
i*ncase);
985 for (
unsigned e=0;
e<n_partition;
e++)
987 getline(input_file,input_string,
'\n');
988 element_partition[
e]=atoi(input_string.c_str());
991 problem.distribute(element_partition,mesh_doc_info,report_stats);
993 problem.check_halo_schemes(mesh_doc_info);
1010 std::cout <<
"\n\n\n CR Total fill_in... : bla \n\n\n " << std::endl;
1014 #ifdef OOMPH_HAS_MPI
1015 MPI_Helpers::finalize();
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Problem class for the cantilever "beam" structure.
Definition: mpi/distribution/airy_cantilever/airy_cantilever2.cc:213
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: constitutive_laws.h:699
Definition: constitutive_laws.h:801
Definition: constitutive_laws.h:145
Wrapper class for solid element to modify the output.
Definition: mpi/distribution/airy_cantilever/airy_cantilever2.cc:53
Definition: solid_elements.h:1523
Definition: solid_elements.h:1332
Definition: refineable_solid_elements.h:826
Definition: refineable_solid_elements.h:436
double E
Elastic modulus.
Definition: TwenteMeshGluing.cpp:68
double Nu
Poisson's ratio.
Definition: TwenteMeshGluing.cpp:71
ConstitutiveLaw * Constitutive_law_pt
Pointer to constitutive law.
Definition: TwenteMeshGluing.cpp:65
double C1
"Mooney Rivlin" coefficient for generalised Mooney Rivlin law
Definition: TwenteMeshGluing.cpp:74
StrainEnergyFunction * Strain_energy_function_pt
Pointer to strain energy function.
Definition: TwenteMeshGluing.cpp:62
double C2
"Mooney Rivlin" coefficient for generalised Mooney Rivlin law
Definition: mpi/distribution/airy_cantilever/airy_cantilever2.cc:156
string filename
Definition: MergeRestartFiles.py:39
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213