for (unsigned int v = 0; v < n_filled_lanes; ++v)
{
- const auto cell_v = matrix_free.get_cell_iterator(cell, v);
+ const auto cell_v =
+ matrix_free.get_cell_iterator(cell, v, dof_no);
if (matrix_free.get_mg_level() != numbers::invalid_unsigned_int)
cell_v->get_mg_dof_indices(dof_indices);
dof_indices_mf[j] = dof_indices[lexicographic_numbering[j]];
constraints.distribute_local_to_global(matrices[v],
- dof_indices_mf,
dof_indices_mf,
dst);
}
matrix);
matrix.compress(VectorOperation::add);
-
- for (auto &entry : matrix)
- if (entry.row() == entry.column() && entry.value() == 0.0)
- {
- Assert(constraints.is_constrained(entry.row()), ExcNotImplemented());
- entry.value() = 1.0;
- }
}
template <typename CLASS,
for (; a1 != A1.end(); ++a1, ++a2, ++a_ref)
{
+ if (a1->row() == a1->column() &&
+ constraints.is_constrained(a1->row()))
+ continue;
+
Assert(std::abs(a1->value() - a_ref->value()) < 1e-6,
ExcNotImplemented());
Assert(std::abs(a2->value() - a_ref->value()) < 1e-6,