gamma (0.01),
e_modul (2.0e+5),
nu (0.3),
- computing_timer (pcout,
+ computing_timer (MPI_COMM_WORLD,
+ pcout,
TimerOutput::summary,
TimerOutput::wall_times)
{
{
// setup dofs
{
+ computing_timer.enter_section("Setup: distribute DoFs");
dof_handler.distribute_dofs (fe);
locally_owned_dofs = dof_handler.locally_owned_dofs ();
locally_relevant_dofs.clear();
DoFTools::extract_locally_relevant_dofs (dof_handler,
locally_relevant_dofs);
+ computing_timer.exit_section("Setup: distribute DoFs");
}
// setup hanging nodes and dirichlet constraints
// setup sparsity pattern
{
+ computing_timer.enter_section("Setup: matrix");
TrilinosWrappers::SparsityPattern sp (locally_owned_dofs,
mpi_communicator);
number_iterations = 0;
diag_mass_matrix_vector.compress (VectorOperation::insert);
+ computing_timer.exit_section("Setup: matrix");
}
}
template <int dim>
void PlasticityContactProblem<dim>::solve ()
{
- computing_timer.enter_section ("Solving and Preconditioning");
+ computing_timer.enter_section ("Solve");
TrilinosWrappers::MPI::Vector distributed_solution (system_rhs_newton);
distributed_solution = solution;
distributed_solution.compress(VectorOperation::insert);
system_rhs_newton.compress(VectorOperation::insert);
- computing_timer.enter_section("Preconditioning");
+ computing_timer.enter_section("Solve: setup preconditioner");
preconditioner_u.initialize (system_matrix_newton, additional_data);
- computing_timer.exit_section("Preconditioning");
+ computing_timer.exit_section("Solve: setup preconditioner");
- computing_timer.enter_section("Solving");
+ computing_timer.enter_section("Solve: iterate");
PrimitiveVectorMemory<TrilinosWrappers::MPI::Vector> mem;
TrilinosWrappers::MPI::Vector tmp (system_rhs_newton);
<< " FGMRES iterations."
<< std::endl;
- computing_timer.exit_section("Solving");
+ computing_timer.exit_section("Solve: iterate");
number_iterations += solver_control.last_step();
solution = distributed_solution;
- computing_timer.exit_section("Solving and Preconditioning");
+ computing_timer.exit_section("Solve");
}
const unsigned int n_cycles = 6;
for (cycle=0; cycle<n_cycles; ++cycle)
{
- computing_timer.enter_section("Mesh refinement and setup system");
+ computing_timer.enter_section("Setup");
pcout << "" <<std::endl;
pcout << "Cycle " << cycle << ':' << std::endl;
}
else
{
+ computing_timer.enter_section("Setup: refine mesh");
soltrans.reset (new parallel::distributed::SolutionTransfer<dim,TrilinosWrappers::MPI::Vector>(dof_handler));
refine_grid ();
+ computing_timer.exit_section("Setup: refine mesh");
}
setup_system ();
solution = distributed_solution;
}
- computing_timer.exit_section("Mesh refinement and setup system");
+ computing_timer.exit_section("Setup");
solve_newton ();
computing_timer.exit_section("Graphical output");
computing_timer.print_summary();
- computing_timer.disable_output();
}
}
}