738 MPI_Helpers::init(argc,argv);
742 bool report_stats=
true;
743 mesh_doc_info.
number()=10;
753 bool incompress=
true;
756 for (
unsigned i=0;
i<2;
i++)
776 std::ifstream input_file;
777 std::ofstream output_file;
781 unsigned n_partition=
problem.mesh_pt()->nelement();
783 sprintf(
filename,
"three_d_cantilever_%i_partition.dat",0+
i*ncase);
786 for (
unsigned e=0;
e<n_partition;
e++)
788 getline(input_file,input_string,
'\n');
789 element_partition[
e]=atoi(input_string.c_str());
792 problem.distribute(element_partition,mesh_doc_info,report_stats);
794 problem.check_halo_schemes(mesh_doc_info);
808 std::ifstream input_file;
809 std::ofstream output_file;
813 unsigned n_partition=
problem.mesh_pt()->nelement();
815 sprintf(
filename,
"three_d_cantilever_%i_partition.dat",0+
i*ncase);
818 for (
unsigned e=0;
e<n_partition;
e++)
820 getline(input_file,input_string,
'\n');
821 element_partition[
e]=atoi(input_string.c_str());
824 problem.distribute(element_partition,mesh_doc_info,report_stats);
826 problem.check_halo_schemes(mesh_doc_info);
843 std::ifstream input_file;
844 std::ofstream output_file;
848 unsigned n_partition=
problem.mesh_pt()->nelement();
850 sprintf(
filename,
"three_d_cantilever_%i_partition.dat",1+
i*ncase);
853 for (
unsigned e=0;
e<n_partition;
e++)
855 getline(input_file,input_string,
'\n');
856 element_partition[
e]=atoi(input_string.c_str());
859 problem.distribute(element_partition,mesh_doc_info,report_stats);
861 problem.check_halo_schemes(mesh_doc_info);
875 std::ifstream input_file;
876 std::ofstream output_file;
880 unsigned n_partition=
problem.mesh_pt()->nelement();
882 sprintf(
filename,
"three_d_cantilever_%i_partition.dat",0+
i*ncase);
885 for (
unsigned e=0;
e<n_partition;
e++)
887 getline(input_file,input_string,
'\n');
888 element_partition[
e]=atoi(input_string.c_str());
891 problem.distribute(element_partition,mesh_doc_info,report_stats);
893 problem.check_halo_schemes(mesh_doc_info);
911 std::ifstream input_file;
912 std::ofstream output_file;
916 unsigned n_partition=
problem.mesh_pt()->nelement();
918 sprintf(
filename,
"three_d_cantilever_%i_partition.dat",1+
i*ncase);
921 for (
unsigned e=0;
e<n_partition;
e++)
923 getline(input_file,input_string,
'\n');
924 element_partition[
e]=atoi(input_string.c_str());
927 problem.distribute(element_partition,mesh_doc_info,report_stats);
929 problem.check_halo_schemes(mesh_doc_info);
943 std::ifstream input_file;
944 std::ofstream output_file;
948 unsigned n_partition=
problem.mesh_pt()->nelement();
950 sprintf(
filename,
"three_d_cantilever_%i_partition.dat",0+
i*ncase);
953 for (
unsigned e=0;
e<n_partition;
e++)
955 getline(input_file,input_string,
'\n');
956 element_partition[
e]=atoi(input_string.c_str());
959 problem.distribute(element_partition,mesh_doc_info,report_stats);
961 problem.check_halo_schemes(mesh_doc_info);
998 std::ifstream input_file;
999 std::ofstream output_file;
1003 unsigned n_partition=
problem.mesh_pt()->nelement();
1005 sprintf(
filename,
"three_d_cantilever_%i_partition.dat",3+
i*ncase);
1008 for (
unsigned e=0;
e<n_partition;
e++)
1010 getline(input_file,input_string,
'\n');
1011 element_partition[
e]=atoi(input_string.c_str());
1014 problem.distribute(element_partition,mesh_doc_info,report_stats);
1016 problem.check_halo_schemes(mesh_doc_info);
1017 mesh_doc_info.
number()++;
1028 #ifdef OOMPH_HAS_MPI
1030 std::ifstream input_file;
1031 std::ofstream output_file;
1035 unsigned n_partition=
problem.mesh_pt()->nelement();
1037 sprintf(
filename,
"three_d_cantilever_%i_partition.dat",3+
i*ncase);
1040 for (
unsigned e=0;
e<n_partition;
e++)
1042 getline(input_file,input_string,
'\n');
1043 element_partition[
e]=atoi(input_string.c_str());
1046 problem.distribute(element_partition,mesh_doc_info,report_stats);
1048 problem.check_halo_schemes(mesh_doc_info);
1049 mesh_doc_info.
number()++;
1064 #ifdef OOMPH_HAS_MPI
1066 std::ifstream input_file;
1067 std::ofstream output_file;
1071 unsigned n_partition=
problem.mesh_pt()->nelement();
1073 sprintf(
filename,
"three_d_cantilever_%i_partition.dat",4+
i*ncase);
1076 for (
unsigned e=0;
e<n_partition;
e++)
1078 getline(input_file,input_string,
'\n');
1079 element_partition[
e]=atoi(input_string.c_str());
1082 problem.distribute(element_partition,mesh_doc_info,report_stats);
1084 problem.check_halo_schemes(mesh_doc_info);
1085 mesh_doc_info.
number()++;
1096 #ifdef OOMPH_HAS_MPI
1098 std::ifstream input_file;
1099 std::ofstream output_file;
1103 unsigned n_partition=
problem.mesh_pt()->nelement();
1105 sprintf(
filename,
"three_d_cantilever_%i_partition.dat",4+
i*ncase);
1108 for (
unsigned e=0;
e<n_partition;
e++)
1110 getline(input_file,input_string,
'\n');
1111 element_partition[
e]=atoi(input_string.c_str());
1114 problem.distribute(element_partition,mesh_doc_info,report_stats);
1116 problem.check_halo_schemes(mesh_doc_info);
1117 mesh_doc_info.
number()++;
1133 std::cout <<
"\n\n\n CR Total fill_in... : bla \n\n\n " << std::endl;
1137 #ifdef OOMPH_HAS_MPI
1138 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
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