3 int main(
int argc,
char** argv) {
9 libMesh::LibMeshInit init(argc, argv);
12 const bool MASTER_bPerfLog_carl_libmesh =
true;
13 libMesh::PerfLog perf_log(
"Main program", MASTER_bPerfLog_carl_libmesh);
16 libMesh::Parallel::Communicator& WorldComm = init.comm();
19 int rank = WorldComm.rank();
20 int nodes = WorldComm.size();
25 GetPot command_line(argc, argv);
31 std::string input_filename;
32 if (command_line.search(2,
"--inputfile",
"-i")) {
33 input_filename = command_line.next(input_filename);
34 field_parser.parse_input_file(input_filename,
"#",
"\n",
" \t\n");
36 field_parser = command_line;
43 const unsigned int dim = 3;
45 libmesh_example_requires(dim == LIBMESH_DIM,
"3D support");
50 perf_log.push(
"Meshes - Parallel",
"Read files:");
51 libMesh::Mesh system_mesh(WorldComm, dim);
53 system_mesh.prepare_for_use();
55 libMesh::Mesh mesh_weight(WorldComm, dim);
56 mesh_weight.allow_renumbering(
false);
58 mesh_weight.prepare_for_use();
60 perf_log.pop(
"Meshes - Parallel",
"Read files:");
63 perf_log.push(
"System setup:");
65 libMesh::EquationSystems& equation_systems = libMesh::EquationSystems(system_mesh);
68 libMesh::LinearImplicitSystem& elasticity_system
void get_input_params(GetPot &field_parser, feti_iterate_params &input_params)
Parser function for the coupled solver test programs.
int main(int argc, char **argv)
void set_clamped_border(libMesh::ImplicitSystem &elasticity_system, int boundary_id)
Set a clamped border.
libMesh::ImplicitSystem & add_elasticity(libMesh::EquationSystems &input_systems, libMesh::Order order=libMesh::FIRST, libMesh::FEFamily family=libMesh::LAGRANGE)
Add a linear elasticity libMesh::LinearImplicitSystem to the input libMesh::EquationSystems& input_sy...
boundary_id_cube
Small enumerate defining a cube's boundary ID's.