static const bool requires_distributed_sparsity_pattern = false;
- template <typename SparsityPatternType, typename DoFHandlerType>
+ template <typename SparsityPatternType, int dim, int spacedim>
static void
reinit(Matrix & matrix,
Sparsity & sparsity,
int level,
const SparsityPatternType &sp,
- const DoFHandlerType &)
+ const DoFHandler<dim, spacedim> &)
{
sparsity.copy_from(sp);
(void)level;
static const bool requires_distributed_sparsity_pattern = false;
- template <typename SparsityPatternType, typename DoFHandlerType>
+ template <typename SparsityPatternType, int dim, int spacedim>
static void
reinit(Matrix &matrix,
Sparsity &,
- int level,
- const SparsityPatternType &sp,
- DoFHandlerType & dh)
+ int level,
+ const SparsityPatternType & sp,
+ const DoFHandler<dim, spacedim> &dh)
{
- const dealii::parallel::TriangulationBase<DoFHandlerType::dimension,
- DoFHandlerType::space_dimension>
- *dist_tria = dynamic_cast<const dealii::parallel::TriangulationBase<
- DoFHandlerType::dimension,
- DoFHandlerType::space_dimension> *>(&(dh.get_triangulation()));
+ const dealii::parallel::TriangulationBase<dim, spacedim> *dist_tria =
+ dynamic_cast<
+ const dealii::parallel::TriangulationBase<dim, spacedim> *>(
+ &(dh.get_triangulation()));
MPI_Comm communicator =
dist_tria != nullptr ? dist_tria->get_communicator() : MPI_COMM_SELF;
static const bool requires_distributed_sparsity_pattern = false;
- template <typename SparsityPatternType, typename DoFHandlerType>
+ template <typename SparsityPatternType, int dim, int spacedim>
static void
reinit(Matrix &matrix,
Sparsity &,
- int level,
- const SparsityPatternType &sp,
- DoFHandlerType & dh)
+ int level,
+ const SparsityPatternType & sp,
+ const DoFHandler<dim, spacedim> &dh)
{
- const dealii::parallel::TriangulationBase<DoFHandlerType::dimension,
- DoFHandlerType::space_dimension>
- *dist_tria = dynamic_cast<const dealii::parallel::TriangulationBase<
- DoFHandlerType::dimension,
- DoFHandlerType::space_dimension> *>(&(dh.get_triangulation()));
+ const dealii::parallel::TriangulationBase<dim, spacedim> *dist_tria =
+ dynamic_cast<
+ const dealii::parallel::TriangulationBase<dim, spacedim> *>(
+ &(dh.get_triangulation()));
MPI_Comm communicator =
dist_tria != nullptr ? dist_tria->get_communicator() : MPI_COMM_SELF;
matrix.reinit(dh.locally_owned_mg_dofs(level + 1),
static const bool requires_distributed_sparsity_pattern = false;
- template <typename SparsityPatternType, typename DoFHandlerType>
+ template <typename SparsityPatternType, int dim, int spacedim>
static void
reinit(Matrix &matrix,
Sparsity &,
- int level,
- const SparsityPatternType &sp,
- DoFHandlerType & dh)
+ int level,
+ const SparsityPatternType & sp,
+ const DoFHandler<dim, spacedim> &dh)
{
- const dealii::parallel::TriangulationBase<DoFHandlerType::dimension,
- DoFHandlerType::space_dimension>
- *dist_tria = dynamic_cast<const dealii::parallel::TriangulationBase<
- DoFHandlerType::dimension,
- DoFHandlerType::space_dimension> *>(&(dh.get_triangulation()));
+ const dealii::parallel::TriangulationBase<dim, spacedim> *dist_tria =
+ dynamic_cast<
+ const dealii::parallel::TriangulationBase<dim, spacedim> *>(
+ &(dh.get_triangulation()));
MPI_Comm communicator =
dist_tria != nullptr ? dist_tria->get_communicator() : MPI_COMM_SELF;
matrix.reinit(dh.locally_owned_mg_dofs(level + 1),
static const bool requires_distributed_sparsity_pattern = false;
- template <typename SparsityPatternType, typename DoFHandlerType>
+ template <typename SparsityPatternType, int dim, int spacedim>
static void
reinit(Matrix &matrix,
Sparsity &,
- int level,
- const SparsityPatternType &sp,
- DoFHandlerType & dh)
+ int level,
+ const SparsityPatternType & sp,
+ const DoFHandler<dim, spacedim> &dh)
{
- const dealii::parallel::TriangulationBase<DoFHandlerType::dimension,
- DoFHandlerType::space_dimension>
- *dist_tria = dynamic_cast<const dealii::parallel::TriangulationBase<
- DoFHandlerType::dimension,
- DoFHandlerType::space_dimension> *>(&(dh.get_triangulation()));
+ const dealii::parallel::TriangulationBase<dim, spacedim> *dist_tria =
+ dynamic_cast<
+ const dealii::parallel::TriangulationBase<dim, spacedim> *>(
+ &(dh.get_triangulation()));
MPI_Comm communicator =
dist_tria != nullptr ? dist_tria->get_communicator() : MPI_COMM_SELF;
matrix.reinit(dh.locally_owned_mg_dofs(level + 1),
static const bool requires_distributed_sparsity_pattern = false;
- template <typename SparsityPatternType, typename DoFHandlerType>
+ template <typename SparsityPatternType, int dim, int spacedim>
static void
reinit(Matrix &,
Sparsity &,
int,
const SparsityPatternType &,
- const DoFHandlerType &)
+ const DoFHandler<dim, spacedim> &)
{
AssertThrow(
false,
static const bool requires_distributed_sparsity_pattern = true;
- template <typename SparsityPatternType, typename DoFHandlerType>
+ template <typename SparsityPatternType, int dim, int spacedim>
static void
reinit(Matrix &matrix,
Sparsity &,
- int level,
- const SparsityPatternType &sp,
- const DoFHandlerType & dh)
+ int level,
+ const SparsityPatternType & sp,
+ const DoFHandler<dim, spacedim> &dh)
{
- const dealii::parallel::TriangulationBase<DoFHandlerType::dimension,
- DoFHandlerType::space_dimension>
- *dist_tria = dynamic_cast<const dealii::parallel::TriangulationBase<
- DoFHandlerType::dimension,
- DoFHandlerType::space_dimension> *>(&(dh.get_triangulation()));
+ const dealii::parallel::TriangulationBase<dim, spacedim> *dist_tria =
+ dynamic_cast<
+ const dealii::parallel::TriangulationBase<dim, spacedim> *>(
+ &(dh.get_triangulation()));
MPI_Comm communicator =
dist_tria != nullptr ? dist_tria->get_communicator() : MPI_COMM_SELF;
// Reinit PETSc matrix