deal.II version GIT relicensing-2206-gaa53ff9447 2024-12-02 09:10:00+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Namespaces | Functions
mg_tools.h File Reference
#include <deal.II/base/config.h>
#include <deal.II/base/index_set.h>
#include <deal.II/dofs/dof_handler.h>
#include <deal.II/dofs/dof_tools.h>
#include <set>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  MGTools
 

Functions

template<int dim, int spacedim>
void MGTools::compute_row_length_vector (const DoFHandler< dim, spacedim > &dofs, const unsigned int level, std::vector< unsigned int > &row_lengths, const DoFTools::Coupling flux_couplings=DoFTools::none)
 
template<int dim, int spacedim>
void MGTools::compute_row_length_vector (const DoFHandler< dim, spacedim > &dofs, const unsigned int level, std::vector< unsigned int > &row_lengths, const Table< 2, DoFTools::Coupling > &couplings, const Table< 2, DoFTools::Coupling > &flux_couplings)
 
template<int dim, int spacedim, typename number = double>
void MGTools::make_sparsity_pattern (const DoFHandler< dim, spacedim > &dof_handler, SparsityPatternBase &sparsity, const unsigned int level, const AffineConstraints< number > &constraints={}, const bool keep_constrained_dofs=true)
 
template<int dim, int spacedim, typename number = double>
void MGTools::make_flux_sparsity_pattern (const DoFHandler< dim, spacedim > &dof_handler, SparsityPatternBase &sparsity, const unsigned int level, const AffineConstraints< number > &constraints={}, const bool keep_constrained_dofs=true)
 
template<int dim, int spacedim>
void MGTools::make_flux_sparsity_pattern_edge (const DoFHandler< dim, spacedim > &dof_handler, SparsityPatternBase &sparsity, const unsigned int level)
 
template<int dim, int spacedim>
void MGTools::make_flux_sparsity_pattern (const DoFHandler< dim, spacedim > &dof, SparsityPatternBase &sparsity, const unsigned int level, const Table< 2, DoFTools::Coupling > &int_mask, const Table< 2, DoFTools::Coupling > &flux_mask)
 
template<int dim, int spacedim>
void MGTools::make_flux_sparsity_pattern_edge (const DoFHandler< dim, spacedim > &dof_handler, SparsityPatternBase &sparsity, const unsigned int level, const Table< 2, DoFTools::Coupling > &flux_mask)
 
template<int dim, int spacedim>
void MGTools::make_interface_sparsity_pattern (const DoFHandler< dim, spacedim > &dof_handler, const MGConstrainedDoFs &mg_constrained_dofs, SparsityPatternBase &sparsity, const unsigned int level)
 
template<int dim, int spacedim>
void MGTools::count_dofs_per_block (const DoFHandler< dim, spacedim > &dof_handler, std::vector< std::vector< types::global_dof_index > > &dofs_per_block, std::vector< unsigned int > target_block={})
 
template<int dim, int spacedim>
void MGTools::count_dofs_per_component (const DoFHandler< dim, spacedim > &mg_dof, std::vector< std::vector< types::global_dof_index > > &result, const bool only_once=false, std::vector< unsigned int > target_component={})
 
template<int dim, int spacedim>
void MGTools::make_boundary_list (const DoFHandler< dim, spacedim > &mg_dof, const std::map< types::boundary_id, const Function< spacedim > * > &function_map, std::vector< std::set< types::global_dof_index > > &boundary_indices, const ComponentMask &component_mask={})
 
template<int dim, int spacedim>
void MGTools::make_boundary_list (const DoFHandler< dim, spacedim > &mg_dof, const std::map< types::boundary_id, const Function< spacedim > * > &function_map, std::vector< IndexSet > &boundary_indices, const ComponentMask &component_mask={})
 
template<int dim, int spacedim>
void MGTools::make_boundary_list (const DoFHandler< dim, spacedim > &mg_dof, const std::set< types::boundary_id > &boundary_ids, std::vector< IndexSet > &boundary_indices, const ComponentMask &component_mask={})
 
template<int dim, int spacedim>
void MGTools::extract_inner_interface_dofs (const DoFHandler< dim, spacedim > &mg_dof_handler, std::vector< IndexSet > &interface_dofs)
 
template<int dim, int spacedim>
unsigned int MGTools::max_level_for_coarse_mesh (const Triangulation< dim, spacedim > &tria)
 
template<int dim, int spacedim>
std::vector< types::global_dof_indexMGTools::local_workload (const Triangulation< dim, spacedim > &tria)
 
template<int dim, int spacedim>
std::vector< types::global_dof_indexMGTools::local_workload (const std::vector< std::shared_ptr< const Triangulation< dim, spacedim > > > &trias)
 
template<int dim, int spacedim>
double MGTools::workload_imbalance (const Triangulation< dim, spacedim > &tria)
 
template<int dim, int spacedim>
double MGTools::workload_imbalance (const std::vector< std::shared_ptr< const Triangulation< dim, spacedim > > > &trias)
 
template<int dim, int spacedim>
std::vector< std::pair< types::global_dof_index, types::global_dof_index > > MGTools::local_vertical_communication_cost (const Triangulation< dim, spacedim > &tria)
 
template<int dim, int spacedim>
std::vector< std::pair< types::global_dof_index, types::global_dof_index > > MGTools::local_vertical_communication_cost (const std::vector< std::shared_ptr< const Triangulation< dim, spacedim > > > &trias)
 
template<int dim, int spacedim>
double MGTools::vertical_communication_efficiency (const Triangulation< dim, spacedim > &tria)
 
template<int dim, int spacedim>
double MGTools::vertical_communication_efficiency (const std::vector< std::shared_ptr< const Triangulation< dim, spacedim > > > &trias)