IndexSet locally_owned_dofs;
IndexSet locally_relevant_dofs;
- AffineConstraints<double> constraints;
+ AffineConstraints<PetscScalar> constraints;
PETScWrappers::MPI::SparseMatrix system_matrix;
PETScWrappers::MPI::Vector locally_relevant_solution;
constraints.clear();
constraints.reinit(locally_relevant_dofs);
DoFTools::make_hanging_node_constraints(dof_handler, constraints);
- VectorTools::interpolate_boundary_values(dof_handler,
- 0,
- Functions::ZeroFunction<dim>(),
- constraints);
+ VectorTools::interpolate_boundary_values(
+ dof_handler, 0, Functions::ZeroFunction<dim, PetscScalar>(), constraints);
constraints.close();
DynamicSparsityPattern csp(dof_handler.n_dofs(),
system_rhs,
preconditioner),
solver_control.last_step(),
- 10,
- 10);
+ 8,
+ 12);
#else
check_solver_within_range(solver.solve(system_matrix,
completely_distributed_solution,
260);
#endif
- pcout << " Solved in " << solver_control.last_step() << " iterations."
- << std::endl;
-
constraints.distribute(completely_distributed_solution);
locally_relevant_solution = completely_distributed_solution;
1024+
Number of degrees of freedom: 4225
4225+
-DEAL:mpi::Solver stopped within 10 - 10 iterations
- Solved in 10 iterations.
+DEAL:mpi::Solver stopped within 8 - 12 iterations
Cycle 1:
Number of active cells: 4096
4096+
Number of degrees of freedom: 16641
16641+
-DEAL:mpi::Solver stopped within 10 - 10 iterations
- Solved in 10 iterations.
+DEAL:mpi::Solver stopped within 8 - 12 iterations
104+100+104+100+104+104+100+104+100+104+
Number of degrees of freedom: 4225
457+412+433+416+417+429+417+418+404+422+
-DEAL:mpi::Solver stopped within 10 - 10 iterations
- Solved in 10 iterations.
+DEAL:mpi::Solver stopped within 8 - 12 iterations
Cycle 1:
Number of active cells: 4096
408+412+408+412+408+408+412+408+412+408+
Number of degrees of freedom: 16649
1721+1669+1670+1677+1626+1662+1676+1640+1658+1650+
-DEAL:mpi::Solver stopped within 10 - 10 iterations
- Solved in 10 iterations.
+DEAL:mpi::Solver stopped within 8 - 12 iterations
340+344+340+
Number of degrees of freedom: 4225
1446+1410+1369+
-DEAL:mpi::Solver stopped within 10 - 10 iterations
- Solved in 10 iterations.
+DEAL:mpi::Solver stopped within 8 - 12 iterations
Cycle 1:
Number of active cells: 4096
1364+1368+1364+
Number of degrees of freedom: 16641
5622+5538+5481+
-DEAL:mpi::Solver stopped within 10 - 10 iterations
- Solved in 10 iterations.
+DEAL:mpi::Solver stopped within 8 - 12 iterations
256+256+256+256+
Number of degrees of freedom: 4225
1077+1056+1058+1034+
-DEAL:mpi::Solver stopped within 10 - 10 iterations
- Solved in 10 iterations.
+DEAL:mpi::Solver stopped within 8 - 12 iterations
Cycle 1:
Number of active cells: 4096
1024+1024+1024+1024+
Number of degrees of freedom: 16641
4201+4163+4155+4122+
-DEAL:mpi::Solver stopped after 11 iterations
- Solved in 11 iterations.
+DEAL:mpi::Solver stopped within 8 - 12 iterations
--- /dev/null
+
+Cycle 0:
+ Number of active cells: 1024
+ 1024+
+ Number of degrees of freedom: 4225
+ 4225+
+DEAL:mpi::Solver stopped within 120 - 260 iterations
+
+Cycle 1:
+ Number of active cells: 4096
+ 4096+
+ Number of degrees of freedom: 16641
+ 16641+
+DEAL:mpi::Solver stopped within 120 - 260 iterations
+
--- /dev/null
+
+Cycle 0:
+ Number of active cells: 1024
+ 104+100+104+100+104+104+100+104+100+104+
+ Number of degrees of freedom: 4225
+ 457+412+433+416+417+429+417+418+404+422+
+DEAL:mpi::Solver stopped within 120 - 260 iterations
+
+Cycle 1:
+ Number of active cells: 4096
+ 408+412+408+412+408+408+412+408+412+408+
+ Number of degrees of freedom: 16649
+ 1721+1669+1670+1677+1626+1662+1676+1640+1658+1650+
+DEAL:mpi::Solver stopped after 340 iterations
+
--- /dev/null
+
+Cycle 0:
+ Number of active cells: 1024
+ 340+344+340+
+ Number of degrees of freedom: 4225
+ 1446+1410+1369+
+DEAL:mpi::Solver stopped within 120 - 260 iterations
+
+Cycle 1:
+ Number of active cells: 4096
+ 1364+1368+1364+
+ Number of degrees of freedom: 16641
+ 5622+5538+5481+
+DEAL:mpi::Solver stopped within 120 - 260 iterations
+
--- /dev/null
+
+Cycle 0:
+ Number of active cells: 1024
+ 256+256+256+256+
+ Number of degrees of freedom: 4225
+ 1077+1056+1058+1034+
+DEAL:mpi::Solver stopped within 120 - 260 iterations
+
+Cycle 1:
+ Number of active cells: 4096
+ 1024+1024+1024+1024+
+ Number of degrees of freedom: 16641
+ 4201+4163+4155+4122+
+DEAL:mpi::Solver stopped within 120 - 260 iterations
+