Loading...
Searching...
No Matches
uniform.h
#include <dolfinx/mesh/Mesh.h>
#pragma once
namespace dolfinx::refinement
{
template <typename T>
mesh::Mesh<T>
uniform_refine(const mesh::Mesh<T>& mesh,
const mesh::CellPartitionFunction& partitioner
= mesh::create_cell_partitioner(mesh::GhostMode::none));
} // namespace dolfinx::refinement
dolfinx::mesh::create_cell_partitioner
CellPartitionFunction create_cell_partitioner(mesh::GhostMode ghost_mode=mesh::GhostMode::none, const graph::partition_fn &partfn=&graph::partition_graph, std::optional< std::int32_t > max_facet_to_cell_links=2)
Create a function that computes destination rank for mesh cells on this rank by applying the default ...
Definition utils.cpp:100
dolfinx::mesh::CellPartitionFunction
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:209
dolfinx::refinement
Mesh refinement algorithms.
Definition dolfinx_refinement.h:8
dolfinx::refinement::uniform_refine
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