Loading [MathJax]/extensions/tex2jax.js
DOLFINx 0.10.0.0
DOLFINx C++ interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages Concepts
uniform.h
1#include <dolfinx/mesh/Mesh.h>
2
3#pragma once
4
6{
7
18template <typename T>
19mesh::Mesh<T>
20uniform_refine(const mesh::Mesh<T>& mesh,
21 const mesh::CellPartitionFunction& partitioner
22 = mesh::create_cell_partitioner(mesh::GhostMode::none));
23
24} // namespace dolfinx::refinement
std::function< graph::AdjacencyList< std::int32_t >( MPI_Comm comm, int nparts, const std::vector< CellType > &cell_types, const std::vector< std::span< const std::int64_t > > &cells)> CellPartitionFunction
Signature for the cell partitioning function. Function that implement this interface compute the dest...
Definition utils.h:206
CellPartitionFunction create_cell_partitioner(mesh::GhostMode ghost_mode=mesh::GhostMode::none, const graph::partition_fn &partfn=&graph::partition_graph)
Create a function that computes destination rank for mesh cells on this rank by applying the default ...
Definition utils.cpp:100
Mesh refinement algorithms.
Definition dolfinx_refinement.h:8
mesh::Mesh< T > uniform_refine(const mesh::Mesh< T > &mesh, const mesh::CellPartitionFunction &partitioner=mesh::create_cell_partitioner(mesh::GhostMode::none))
Uniform refinement of a 2D or 3D mesh, containing any supported cell types. Hexahedral,...
Definition uniform.cpp:15