17#ifndef dealii_matrix_free_dof_info_h
18#define dealii_matrix_free_dof_info_h
42 namespace MatrixFreeFunctions
49 template <
typename Number>
50 struct ConstraintValues;
62template <
int,
int,
bool>
77 namespace MatrixFreeFunctions
164 const
unsigned int fe_degree) const;
187 const
unsigned int cell_batch,
188 const
bool with_constraints = true) const;
199 template <typename number>
202 const
std::vector<
types::global_dof_index> &local_indices_resolved,
203 const
std::vector<
types::global_dof_index> &local_indices,
204 const
bool cell_has_hanging_nodes,
206 const
unsigned int cell_number,
208 bool & cell_at_boundary);
218 const
std::vector<
std::vector<
unsigned int>> &lexicographic_mapping,
219 const
unsigned int cell_number,
233 const
bool use_vector_data_exchanger_full);
243 const
std::vector<
unsigned int> & renumbering,
244 const
std::vector<
unsigned int> & constraint_pool_row_index,
245 const
std::vector<
unsigned char> &irregular_cells);
253 const
std::vector<
unsigned char> &irregular_cells);
259 template <
int length>
271 const
std::vector<
unsigned int> &renumbering,
282 const
unsigned int n_owned_cells,
283 const
unsigned int n_lanes,
286 const
bool fill_cell_centric,
288 const
bool use_vector_data_exchanger_full);
297 std::array<
std::vector<
std::pair<
unsigned int,
unsigned int>>, 3>
298 &cell_indices_contiguous_sm);
312 std::vector<
types::global_dof_index> &renumbering);
323 template <
int length>
339 template <typename StreamType>
348 template <typename Number>
350 print(const
std::vector<Number> & constraint_pool_data,
351 const
std::vector<
unsigned int> &constraint_pool_row_index,
352 std::ostream & out) const;
493 std::vector<std::pair<unsigned int, unsigned int>>
row_starts;
533 std::vector<std::pair<unsigned short, unsigned short>>
559 std::array<std::vector<std::pair<unsigned int, unsigned int>>, 3>
775 const unsigned int fe_degree)
const
780 for (
unsigned int i = 0; i < n_indices; ++i)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
std::uint8_t compressed_constraint_kind
static const unsigned int invalid_unsigned_int
void print(const std::vector< Number > &constraint_pool_data, const std::vector< unsigned int > &constraint_pool_row_index, std::ostream &out) const
@ dof_access_face_exterior
@ dof_access_face_interior
void reorder_cells(const TaskInfo &task_info, const std::vector< unsigned int > &renumbering, const std::vector< unsigned int > &constraint_pool_row_index, const std::vector< unsigned char > &irregular_cells)
std::vector< std::pair< unsigned short, unsigned short > > constraint_indicator
std::vector< unsigned int > cell_loop_pre_list_index
std::vector< std::pair< unsigned int, unsigned int > > row_starts
unsigned int n_base_elements
std::vector< std::vector< unsigned int > > component_dof_indices_offset
void compute_tight_partitioners(const Table< 2, ShapeInfo< double > > &shape_info, const unsigned int n_owned_cells, const unsigned int n_lanes, const std::vector< FaceToCellTopology< 1 > > &inner_faces, const std::vector< FaceToCellTopology< 1 > > &ghosted_faces, const bool fill_cell_centric, const MPI_Comm communicator_sm, const bool use_vector_data_exchanger_full)
std::vector< std::vector< bool > > hanging_node_constraint_masks_comp
unsigned int global_base_element_offset
unsigned int max_fe_index
void get_dof_indices_on_cell_batch(std::vector< unsigned int > &local_indices, const unsigned int cell_batch, const bool with_constraints=true) const
unsigned int fe_index_from_degree(const unsigned int first_selected_component, const unsigned int fe_degree) const
void compute_cell_index_compression(const std::vector< unsigned char > &irregular_cells)
void compute_face_index_compression(const std::vector< FaceToCellTopology< length > > &faces)
std::vector< unsigned int > cell_loop_post_list_index
std::vector< unsigned int > dofs_per_cell
void assign_ghosts(const std::vector< unsigned int > &boundary_cells, const MPI_Comm communicator_sm, const bool use_vector_data_exchanger_full)
void compute_dof_renumbering(std::vector< types::global_dof_index > &renumbering)
unsigned int vectorization_length
static const unsigned int chunk_size_zero_vector
std::shared_ptr< const internal::MatrixFreeFunctions::VectorDataExchange::Base > vector_exchanger
@ interleaved_contiguous_strided
@ interleaved_contiguous_mixed_strides
std::vector< std::vector< unsigned int > > fe_index_conversion
std::vector< unsigned int > dof_indices
std::vector< std::pair< unsigned int, unsigned int > > vector_zero_range_list
std::shared_ptr< const Utilities::MPI::Partitioner > vector_partitioner
std::vector< compressed_constraint_kind > hanging_node_constraint_masks
std::array< std::vector< unsigned int >, 3 > dof_indices_interleave_strides
std::array< std::vector< std::pair< unsigned int, unsigned int > >, 3 > dof_indices_contiguous_sm
std::vector< unsigned int > row_starts_plain_indices
std::vector< unsigned int > dofs_per_face
std::size_t memory_consumption() const
std::vector< unsigned int > component_to_base_index
void compute_vector_zero_access_pattern(const TaskInfo &task_info, const std::vector< FaceToCellTopology< length > > &faces)
std::vector< unsigned int > n_components
void print_memory_consumption(StreamType &out, const TaskInfo &size_info) const
std::vector< std::pair< unsigned int, unsigned int > > cell_loop_pre_list
std::vector< types::global_dof_index > ghost_dofs
void read_dof_indices(const std::vector< types::global_dof_index > &local_indices_resolved, const std::vector< types::global_dof_index > &local_indices, const bool cell_has_hanging_nodes, const ::AffineConstraints< number > &constraints, const unsigned int cell_number, ConstraintValues< double > &constraint_values, bool &cell_at_boundary)
std::array< std::vector< unsigned int >, 3 > dof_indices_contiguous
bool process_hanging_node_constraints(const HangingNodes< dim > &hanging_nodes, const std::vector< std::vector< unsigned int > > &lexicographic_mapping, const unsigned int cell_number, const TriaIterator< DoFCellAccessor< dim, dim, false > > &cell, std::vector< types::global_dof_index > &dof_indices)
DoFInfo(const DoFInfo &)=default
std::vector< unsigned int > cell_active_fe_index
std::array< std::shared_ptr< const internal::MatrixFreeFunctions::VectorDataExchange::Base >, 5 > vector_exchanger_face_variants
std::vector< unsigned int > plain_dof_indices
std::array< std::vector< unsigned char >, 3 > n_vectorization_lanes_filled
std::vector< unsigned int > start_components
std::vector< unsigned int > dof_indices_interleaved
std::vector< unsigned int > constrained_dofs
std::array< std::vector< IndexStorageVariants >, 3 > index_storage_variants
void make_connectivity_graph(const TaskInfo &task_info, const std::vector< unsigned int > &renumbering, DynamicSparsityPattern &connectivity) const
std::vector< unsigned int > vector_zero_range_list_index
void compute_shared_memory_contiguous_indices(std::array< std::vector< std::pair< unsigned int, unsigned int > >, 3 > &cell_indices_contiguous_sm)
std::vector< std::pair< unsigned int, unsigned int > > cell_loop_post_list
DoFInfo(DoFInfo &&) noexcept=default