void
zero_vector_region(const unsigned int range_index, VectorType &vec) const
{
- if (range_index == numbers::invalid_unsigned_int)
+ if (range_index == numbers::invalid_unsigned_int || range_index == 0)
vec = typename VectorType::value_type();
- else
- {
- Assert(false, ExcNotImplemented());
- }
}
// continuous elements and compare results between matrix-free and matrix-based
// implementations.
-#include <deal.II/distributed/tria.h>
-
#include <deal.II/dofs/dof_handler.h>
#include <deal.II/dofs/dof_tools.h>
class PoissonOperator
{
public:
- using VectorType = LinearAlgebra::distributed::Vector<double>;
+ using VectorType = Vector<double>;
PoissonOperator(const MatrixFree<dim, double> &matrix_free,
const bool do_helmholtz)
PoissonOperator<dim> poisson_operator(matrix_free, do_helmholtz);
- LinearAlgebra::distributed::Vector<double> x, b;
+ Vector<double> x, b;
poisson_operator.initialize_dof_vector(x);
poisson_operator.initialize_dof_vector(b);