The test uses PETScWrappers::Vector, but this class is now deprecated and indeed
produces an error now (because the respective include file has been removed
from the generic_linear_algebra.h include file.
#include "../tests.h"
#include <deal.II/lac/generic_linear_algebra.h>
+#include <deal.II/lac/petsc_parallel_vector.h>
+#include <deal.II/lac/petsc_parallel_block_vector.h>
#include <deal.II/base/index_set.h>
#include <deal.II/lac/constraint_matrix.h>
#include <fstream>
{
deallog.push("PETSc");
- PETScWrappers::Vector v(17);
+ PETScWrappers::MPI::Vector v(MPI_COMM_SELF, 17, 17);
test (v);
deallog.pop();
}
{
deallog.push("PETSc");
- PETScWrappers::BlockVector v(3);
- v.block(0).reinit(7);
- v.block(1).reinit(5);
- v.block(2).reinit(3);
- v.collect_sizes();
+ std::vector<PETScWrappers::MPI::BlockVector::size_type> sizes(3);
+ sizes[0] = 7;
+ sizes[1] = 5;
+ sizes[2] = 3;
+ PETScWrappers::MPI::BlockVector v(sizes, MPI_COMM_SELF, sizes);
test (v);
deallog.pop();
}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams