DOLFINx
0.11.0.0
DOLFINx C++
Toggle main menu visibility
Loading...
Searching...
No Matches
dolfinx
refinement
uniform.h
1
#include <dolfinx/mesh/Mesh.h>
2
3
#pragma once
4
5
namespace
dolfinx::refinement
6
{
7
18
template
<
typename
T>
19
mesh::Mesh<T>
20
uniform_refine
(
const
mesh::Mesh<T>& mesh,
21
const
mesh::CellPartitionFunction
& partitioner
22
=
mesh::create_cell_partitioner
(mesh::GhostMode::none, 2));
23
24
}
// namespace dolfinx::refinement
dolfinx::mesh::create_cell_partitioner
CellPartitionFunction create_cell_partitioner(mesh::GhostMode ghost_mode, const graph::partition_fn &partfn, std::optional< std::int32_t > max_facet_to_cell_links)
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:212
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, 2))
Uniform refinement of a 2D or 3D mesh, containing any supported cell types. Hexahedral,...
Definition
uniform.cpp:15
Generated by
1.17.0