std::max<int>(100 * myid - 50, 0),
std::min(static_cast<types::global_dof_index>(100 * myid + 150),
vec.size()));
- ConstraintMatrix cm(locally_relevant_range);
+ AffineConstraints<PetscScalar> cm(locally_relevant_range);
// add constraints that constrain an element in the middle of the
// local range of each processor against an element outside, both in
vec.block(0).size() +
std::min(static_cast<types::global_dof_index>(100 * myid + 150),
vec.block(0).size()));
- ConstraintMatrix cm(locally_relevant_range);
+ AffineConstraints<PetscScalar> cm(locally_relevant_range);
// add constraints that constrain an element in the middle of the
// local range of each processor against an element outside, both in
std::max<int>(100 * myid - 50, 0),
std::min(static_cast<types::global_dof_index>(100 * myid + 150),
vec.size()));
- ConstraintMatrix cm(locally_relevant_range);
+ AffineConstraints<PetscScalar> cm(locally_relevant_range);
// add constraints that constrain an element in the middle of the
// local range of each processor against an element outside, both in
FullMatrix<PetscScalar> cell_matrix(n, n);
Vector<PetscScalar> cell_rhs(n);
- ConstraintMatrix constraints;
+ AffineConstraints<PetscScalar> constraints;
constraints.close();
std::vector<types::global_dof_index> gdi(n);
vector.reinit(locally_owned_dofs, mpi_communicator);
- ConstraintMatrix constraints;
+ AffineConstraints<PetscScalar> constraints;
constraints.reinit(locally_relevant_dofs);
DoFTools::make_hanging_node_constraints(dof_handler, constraints);
constraints.close();